Jenkins Project - johnttaylor/epc GitHub Wiki
There are a minimum of 3 Jenkins projects per build Host/platform that need to be created. The project requires a Windows and Linux Host build machines, so there are 6 projects that get created. The Jenkins projects are:
-
CI-Stage1-linux project that builds Pull Requests for a Linux platform. The CI build is triggered when a PR is submitted and when a PR has new commit.
-
CI-Stage2-windows project that builds Pull Requests for Windows and target platforms. The build is triggered when the CI-Stage1-Linux build successfully completes.
-
Develop-Stage1-linux project that builds the
develop
branch for a Linux platform. The develop project is triggered when there is new code committed to thedevelop
branch, i.e. when a PR is merged todevelop
. -
Develop-Stage2-windows project that builds the
develop
branch for Windows and target platforms.. The build is triggered when the Develop-Stage1-linux build successfully completes. -
Main-Stage1-linux project that builds the
master
branch for a Linux platform. The develop project is triggered when there is new code committed to themain
branch, i.e. whendevelop
is merged tomain
. -
Main-Stage2-windows project that builds the
main
branch for Windows and target platforms.. The build is triggered when the Main-Stage1-linux build successfully completes.
Project Folder
A Jenkins folder is created to group the above build to together. To create a folder, click Dashboard->New item
, enter the folder name and then select Folder
and click the OK
button.
- Do NOT use spaces in the folder name.
After the folder has been created, the dashboard view in Jenkins should look like similar to the screenshot below:
Create a Jenkins Project
-
Navigate to the Project folder, e.g.
Dashboard->GM6000
-
Click
New item
in the left hand menu, enter the project name (e.g.CIBuild
) and selectFreestyle project
and click the 'OK' button- Do NOT use spaces in the project name.