Create Jenkins project to run build using DBB, Git and Jenkins slave on z/OS
For the example, create Jenkins Freestyle Project
The Jenkins project name should be used in the Eclipse project folder /conf/"Jenkins Project Name".properties
This is assuming Jenkins has been setup and all the necessary plugins have been installed
Under Source Code Management
You will need to use SSH protocol with Git on z/OS
Example: ssh://git@"Git server":7999/zos/mortgageapplication.git
Add z/OS credentials to access the repository from z/OS
You can added "branches to build". Format "/release/v0.0.1"
Default Git executable will work, provided Git is installed properly on z/OS
Under Build
Add Execute Groovy Script
Select "Groovy Script file"
enter "build/build.groovy"
In the Advanced section
Add the classpath "'DBB Home'/lib/:'zJenkins Home'/lib/" without the quotes
Add Java Opts "-Djava.library.path='DBB Home'/lib/:'zJenkins Home'/lib/" without the quotes