Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Create Jenkins Project

Jerry Edgington edited this page Jan 31, 2019 · 3 revisions

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

Groovy Version - Pointing to DBB Groovy Tool definition. See Installation and Setup Jenkins for z/OS
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