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 the develop branch, i.e. when a PR is merged to develop.

  • 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 the main branch, i.e. when develop is merged to main.

  • 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.

image

After the folder has been created, the dashboard view in Jenkins should look like similar to the screenshot below:

image

Create a Jenkins Project

  1. Navigate to the Project folder, e.g. Dashboard->GM6000

  2. Click New item in the left hand menu, enter the project name (e.g. CIBuild) and select Freestyle project and click the 'OK' button

    • Do NOT use spaces in the project name.

    image