Lesson 7: Adding a Jenkins application in the pipeline

You can learn about adding the Jenkins application and configuring the build and deploy Jenkins jobs to the different environments in the pipeline.

Procedure

  1. Perform the following steps to add the Jenkins application to the pipeline:
    1. On the Pipeline page, click Add application.

      The Add app - Choose the app dialog is displayed.

    2. In the Managed by drop-down list, select Jenkins.
    3. In the Application name field, enter the name for the application. For example, TUTORIAL_JENKINS.
    4. Click Save.
  2. Perform the following steps to add the Jenkins build job to the Input stage of the pipeline:
    1. On the Pipeline page, click under the Input.
    2. On the Create version dialog, in the Select job list, select Build_Input job.
    3. Click Save.
  3. Perform the following steps to add the Jenkins deploy job to the DEV stage of the pipeline:
    1. On the Pipeline page, click under DEV stage.
    2. On the Map a Jenkins job to a logical environment (DEV) dialog, in the Managed by list, select Jenkins.
    3. Select Deploy_DEV from the Select job list.
    4. Click Next.
    5. Type ${version.buildNumber} in the build number field.
    6. Click Next.
    7. Select build number from the Select Version Parameter list.
    8. Click Save.
  4. Perform the following steps to add the Jenkins deploy job to the QA stage of the pipeline:
    1. On the Pipeline page, click under QA stage.
    2. On the Map a Jenkins job to a logical environment (QA) dialog, in the Managed by list, select Jenkins.
    3. Select Deploy_QA from the Select job list.
    4. Click Next.
    5. Type ${version.buildNumber} in the build number field.
    6. Click Next.
    7. Select build number from the Select Version Parameter list.
    8. Click Save.
  5. Perform the following steps to add the Jenkins deploy job to the PROD stage of the pipeline:
    1. On the Pipeline page, click under PROD stage.
    2. On the Map a Jenkins job to a logical environment (PROD) dialog, in the Managed by list, select Jenkins.
    3. Select Deploy_PROD from the Select job list.
    4. Click Next.
    5. Type ${version.buildNumber} in the build number field.
    6. Click Next.
    7. Select build number in the Select Version Parameter field.
    8. Click Save.
    In this lesson, you have learned to add the Jenkins application, and configure the build and deployment jobs to the different environments in the pipeline.

Results

You can learn about the functionality of Jira, GitHub, and Jenkins integrations in the value stream and visualize the movement of dots from the backlog to build stages within the value stream. See Lesson 8: Visualizing the movement of dots in the value stream.