I have a Jenkins Pipeline "Pipeline1" which deploys code to environment A. I have configured "Pipeline2" as the downstream job like this:
build job: "Pipeline2", parameters: [string(name: 'BUILD_VERSION', value: "${BUILD_VERSION}"),
string(name: 'PB_VERSION', value: "${PB_VERSION}"),
string(name: 'cmdbVersion', value: "${cmdbVersion}")]
After "Pipeline1" completes, it passes the parameters to "Pipeline2" and starts the Pipeline2 job. But I dont want Pipeline2 to be triggered. I want to just pass parameters for someone to manually start Pipeline2 at a later point of time.
Ideally, I want the "Build other projects (manual step)" of freestyle jobs as the Post-Build Action in Pipeline1 but i find only this command to specify the downstream job - "build job: "jobname""