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

Promoted builds not picking up injected env settings as of 2.17 (2.15 is ok)

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • promoted-builds-plugin
    • None
    • Linux xxxx 3.11.0-13-generic #20-Ubuntu SMP Wed Oct 23 07:38:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
      jenkins 1.553

      Promoted build action to copy files into a releases folder using this path:

      /u0/releases/Server/${BRANCH}/QA/${PROMOTED_NUMBER}

      works fine in 2.15, promotion log shows:

      [SCP] uploading file: '/home/jenkins/releases/Server/develop/QA/397/CHANGES'
      [SCP] uploading file: '/home/jenkins/releases/Server/develop/QA/397/Packages.gz'

      and fails to replace the ${BRANCH} env token when using 2.17:

      [SCP] uploading file: '/home/jenkins/releases/Server/${BRANCH}/QA/390/CHANGES'
      [SCP] uploading file: '/home/jenkins/releases/Server/${BRANCH}/QA/390/Packages.gz'

      Note that ${BRANCH} is not being replaced by "develop"

          [JENKINS-22094] Promoted builds not picking up injected env settings as of 2.17 (2.15 is ok)

          podskalsky added a comment -

          I would also need to have the defined environment variables from the https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin running he in the promoted additional build actions (shell).

          podskalsky added a comment - I would also need to have the defined environment variables from the https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin running he in the promoted additional build actions (shell).

          Probably linked to JENKINS-22679

          Jan Vansteenkiste added a comment - Probably linked to JENKINS-22679

          Bruce Edge added a comment -

          Closing this issue as the other has more details.

          Bruce Edge added a comment - Closing this issue as the other has more details.

          Bruce Edge added a comment -

          Duplicate of JENKINS-22679

          Bruce Edge added a comment - Duplicate of JENKINS-22679

            Unassigned Unassigned
            bedge Bruce Edge
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: