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

Expose "Build Environment" config section, to allow use of build-name-setter plugin

    Details

    • Similar Issues:

      Description

      I want to be able to customise the name of a build-flow build using https://wiki.jenkins-ci.org/display/JENKINS/Build+Name+Setter+Plugin

      I can do this for the ordinary sub-jobs, but the main Build Flow job does not expose the "Build Environment" config section where the "Set Build Name" checkbox lives.

        Attachments

          Activity

          Hide
          anentropic Anentropic added a comment -

          I found a workaround, according to suggestion here https://issues.jenkins-ci.org/browse/JENKINS-16254 and in conjunction with Build Flow docs https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin along with a little bit of reading about Groovy Gstring syntax http://docs.groovy-lang.org/latest/html/documentation/#_gstrings

          it is possible to achieve what I was trying to do with Build Name Setter plugin just in the Build Flow DSL, eg:

          build.setDisplayName "#$build.number--${params.BRANCH}"
          
          Show
          anentropic Anentropic added a comment - I found a workaround, according to suggestion here https://issues.jenkins-ci.org/browse/JENKINS-16254 and in conjunction with Build Flow docs https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin along with a little bit of reading about Groovy Gstring syntax http://docs.groovy-lang.org/latest/html/documentation/#_gstrings it is possible to achieve what I was trying to do with Build Name Setter plugin just in the Build Flow DSL, eg: build.setDisplayName "#$build.number--${params.BRANCH}"
          Hide
          le0 Lev Mishin added a comment -

          setter build step is available in new plugin version
          https://wiki.jenkins-ci.org/display/JENKINS/Build+Name+Setter+Plugin

          Show
          le0 Lev Mishin added a comment - setter build step is available in new plugin version https://wiki.jenkins-ci.org/display/JENKINS/Build+Name+Setter+Plugin

            People

            • Assignee:
              le0 Lev Mishin
              Reporter:
              anentropic Anentropic
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: