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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Centos 6 x64, Jenkins 1.651.2

      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?

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

              Created:
              Updated: