In most cases, your Jenkins projects execute tasks in a command line environment and not inside the Visual COBOL IDE. This means that the COBOL environment is not automatically preconfigured as it would be if you used the IDE. As a result, when you use Jenkins projects you typically need to manually set the COBOL environment for your projects.
To configure the environment for applications created with Visual COBOL for Visual Studio:
call "VSCMDpath\VsDevCmd.bat"
Where VSCMDpath is the location of the Visual Studio command prompt batch file. For example, for Visual Studio 2019 Professional this is C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools. Visual COBOL integrates with the Visual Studio development environment so executing this sets the environment for building COBOL projects created with Visual Studio.