Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48047

Want Jenkins Pipeline job to pass parameters to downstream job without triggering it

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • pipeline

      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""

       

            Unassigned Unassigned
            archanaganesh AG
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: