The following example shows how to use Jenkins projects to build COBOL source code.
You are going to use Visual COBOL and one of the MFUnit Airport samples to see how to use Jenkins to build a COBOL application. The sample is stored in the \COBOL\AirportMFUnitDemo subfolder in the location of the Visual COBOL samples (which is c:\users\Public\Documents\Micro Focus\Enterprise Developer\Samples\COBOL\AirportMFUnitDemo by default).
Before you create a Jenkins project:
To create a Jenkins project for building the sample:
call "VSCMDpath\VsDevCmd.bat"
Where VSCMDpath is the location of the Visual Studio command prompt batch file. For example, for Visual Studio 2017 Professional this is C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools. Executing this sets the environment for building COBOL projects created with Visual Studio.
MSBuild "c:\temp\AirportMFunitDemo\AirportMFunitDemo.sln"