In the “lab-deploying-with-multi-stage-pipeline” exercise, it appears that the “bob” account currently has access only to freestyle pipelines and is unable to view or access pipeline-style jobs. Could you please review the account’s privileges and grant it access to pipeline-style jobs?
Create and Configure the job:
1. On the left of the Jenkins dashboard, click on New Item
.
2. Enter the job name go-app-deployment
.
3. Select Pipeline
job and click on OK
.
4. Under Pipeline
section keep selected Pipeline script
as Definition
and add below given code in the Script