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

BUILD_DISPLAY_NAME environment variable not updated

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Windows Server 2012R2 64Bit,
      Jenkins v1.646 (ran directly),
      build-name-setter v1.5.1

      The build display name appears correctly in Jenkins (see 1.jpg and 2.jpg).
      However we've noticed that some plugins do not use the correct value. In our case we noticed it with the email-ext plugin where the BUILD_DISPLAY_NAME variable was replaced with the standard BUILD_NUMBER.
      When looking at the environment variables from that build, it is also not updated (as displayed in 3.jpg).

      As far as I can tell the email-ext plugin relies on this environment variable (as may others). But it does not get updated as I would expect by the build-name-setter plugin.

      This occured in freestyle jobs as well as in multibranch projects (through the multibranch plugin).

        1. build_name_setter.PNG
          build_name_setter.PNG
          8 kB
        2. 2.jpg
          2.jpg
          181 kB
        3. 3.jpg
          3.jpg
          252 kB
        4. 1.jpg
          1.jpg
          63 kB

          [JENKINS-33687] BUILD_DISPLAY_NAME environment variable not updated

          Timo Stamm created issue -
          Lev Mishin made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Lev Mishin added a comment -

          Fixed in version 1.6.5

          Lev Mishin added a comment - Fixed in version 1.6.5
          Lev Mishin made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Lev Mishin made changes -
          Link New: This issue duplicates JENKINS-23639 [ JENKINS-23639 ]
          Lev Mishin made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 169651 ] New: JNJira + In-Review [ 209859 ]

          Ruben Diaz added a comment -

          This is happening as of today with Jenkins 2.7.4.

          Ruben Diaz added a comment - This is happening as of today with Jenkins 2.7.4.
          Ruben Diaz made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

          Attachment "3.jpg" looks very good. Can someone let me know, what Plugin is used to Display the Environment variables and values used in a particular Build?

          Raghavendra Tallam added a comment - Attachment "3.jpg" looks very good. Can someone let me know, what Plugin is used to Display the Environment variables and values used in a particular Build?

            le0 Lev Mishin
            stammt Timo Stamm
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: