The following example shows how to use Jenkins projects to build a mainframe applications.
You are going to use Enterprise Developer and the BankDemo sample stored in the \Mainframe\BankDemo subfolder in the location of the Enterprise Developer samples (which is c:\users\Public\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\BankDemo by default).
Before you create a Jenkins project, ensure that the following software is installed on the machine where you will build the sample:
Prepare your mainframe application:
To create a Jenkins project for building the sample:
call "%ProgramFiles(x86)%\Micro Focus\Enterprise Developer\setupenv.bat" set JAVA_HOME=%ProgramFiles(x86)%\Micro Focus\Enterprise Developer\AdoptOpenJDK set ANT_HOME=C:\TOOLS\apache-ant-1.9.6 set PATH=%ANT_HOME%\bin;%PATH% set ANT_OPTS=-Xmx1024m cd C:\MFETDUSER\BankDemo\Projects\Eclipse\Bankdemo call ant -lib "%ProgramFiles(x86)%\Micro Focus\Enterprise Developer\bin\mfant.jar" -f .cobolBuild
Modify the instructions above with the install locations on your machine. These set the environment and build the project as follows:
See To Build a Project Using Apache Ant for some useful Ant options you can use to build your projects.