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

Post Build trigger parameterized job does not resolve variables used for job name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • Jenkins Ubuntu server 1.574

      When using the trigger parameterized build in a jenkins job, we like to use a variable for the job name and then that variable is part of the current jobs parameters

      So we build a job with paramters, pass it the name of the job to trigger inside the build section. This works great inside the build section, we can specify $JobName on the projects to build line

      However if we try to do the same thing in the PostBuild section it does not resolve the variable names. We would like it to also do variable resolution in post build trigger parameterized job

      You can see in the picture, this is what we would like to do, but it does not resolve the variable $JobName

      $JobName is a build variable of this current job. If we put this block into the Build section it does work, only post build has the problem

            huybrechts huybrechts
            lorelei Lorelei McCollum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: