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

variables are not visible/expanded in bundled/linked jobs and templates

    Details

    • Similar Issues:

      Description

      after upgrade from 1.642.2 to 1.651.2 (LTS) some variables are not visible in other jobs/templates.

      to repeat on 1.651.2:

      • create empty job
      • add empty string parameter (GIT_REPO in our case)
      • in shell step do "echo ${GIT_REPO}"
      • test it, should work ok

      then

      • move code "echo ${GIT_REPO}" to another job
      • add that job to "use builders from another project" step in first job
      • run it, actual result will be "${GIT_REPO}" instead of value

      it works with 1.642.2 but not with 1.651.2. the workaround is to duplicate template logic to every job using it.

      is it some expected security fix or bug?

        Attachments

          Activity

          Hide
          brantone Brantone added a comment -
          Show
          brantone Brantone added a comment - Pretty sure it's because of this: https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-05-11

            People

            • Assignee:
              huybrechts huybrechts
              Reporter:
              abychko Alexey Bychko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: