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
-
Perform the following steps to add the Jenkins application to the pipeline:
-
Perform the following steps to add the Jenkins build job to the
Input stage of the pipeline:
-
On the Pipeline page, click
under the
Input.
- On the Create version dialog, in the Select job list, select Build_Input job.
- Click Save.
-
On the Pipeline page, click
-
Perform the following steps to add the Jenkins deploy job to the
DEV stage of the pipeline:
-
On the Pipeline page, click
under
DEV stage.
- On the Map a Jenkins job to a logical environment (DEV) dialog, in the Managed by list, select Jenkins.
- Select Deploy_DEV from the Select job list.
- Click Next.
- Type ${version.buildNumber} in the build number field.
- Click Next.
- Select build number from the Select Version Parameter list.
- Click Save.
-
On the Pipeline page, click
-
Perform the following steps to add the Jenkins deploy job to the
QA stage of the pipeline:
-
On the Pipeline page, click
under
QA stage.
- On the Map a Jenkins job to a logical environment (QA) dialog, in the Managed by list, select Jenkins.
- Select Deploy_QA from the Select job list.
- Click Next.
- Type ${version.buildNumber} in the build number field.
- Click Next.
- Select build number from the Select Version Parameter list.
- Click Save.
-
On the Pipeline page, click
-
Perform the following steps to add the Jenkins deploy job to the
PROD stage of the pipeline:
-
On the Pipeline page, click
under
PROD stage.
- On the Map a Jenkins job to a logical environment (PROD) dialog, in the Managed by list, select Jenkins.
- Select Deploy_PROD from the Select job list.
- Click Next.
- Type ${version.buildNumber} in the build number field.
- Click Next.
- Select build number in the Select Version Parameter field.
- 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. -
On the Pipeline page, click