Example - Integrating Code Analysis

The following example demonstrates how to configure Jenkins to perform code analysis of COBOL projects created with Visual COBOL.

Example with a Visual Studio Project

Before you configure Jenkins, you need to do the following:

  1. Ensure Visual COBOL for Visual Studio is installed.
  2. Configure your COBOL projects for code analysis in Visual COBOL. See Performing Code Analysis when Building a Project in the IDE for more information.

To integrate code analysis in Jenkins:

  1. Create a Jenkins project.
  2. Configure the project to work with COBOL - see Setting up the Environment.
  3. In the Build section of the project's configuration, use MSBuild with parameters for code analysis.

    See Performing Code Analysis from the Command Line for more information.