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

Implement option to update build name before check out

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • build-name-setter 1.3

      Currently:
      "The update actually happens twice during the build; once right after the check out, and once before the build is completed."

      Problem:
      When check out takes a long time (e.g. several libraries are being checked out), build name does not update immediately, although, it is already in the "building" state.

      Improvement:
      Provide an option to update build name before check-out.

      Benefit:
      Users can use this option if they do not need any information from the source code/libraries being checked out for their build name (i.e. build name makes use of Build Parameters). Build name will then update immediately for such cases.

          [JENKINS-29260] Implement option to update build name before check out

          Brantone added a comment - - edited

          Might be a bit hacky but could add a build step called "Set Build Name" that then triggers setting the name

          [EDIT] : Git repo does actually make mention of this with screenshots: https://github.com/jenkinsci/build-name-setter-plugin/blob/master/README.md ; however, unsure if out-of-date since that build option "Update build name" doesn't actually appear.

          [EDIT2] : Bah!! https://github.com/jenkinsci/build-name-setter-plugin/pull/6

          Brantone added a comment - - edited Might be a bit hacky but could add a build step called "Set Build Name" that then triggers setting the name [EDIT] : Git repo does actually make mention of this with screenshots: https://github.com/jenkinsci/build-name-setter-plugin/blob/master/README.md ; however, unsure if out-of-date since that build option "Update build name" doesn't actually appear. [EDIT2] : Bah!! https://github.com/jenkinsci/build-name-setter-plugin/pull/6

          Elgin Peteza added a comment -

          Can that PR be used in conjunction with pre-scm-buildstep plugin? If yes, that could solve my problem with setting build name before SCM.

          Elgin Peteza added a comment - Can that PR be used in conjunction with pre-scm-buildstep plugin? If yes, that could solve my problem with setting build name before SCM.

          Noam Manos added a comment -

          I would even extend this feature, to set build name even when SCM checkout failed.
          Currently, when SCM fails - the "Set Build Name" doesn't occur before or after build, because build was not initiated if SCM failed.

          To workaround this, I had to add flexible post build (plugin) that runs "Update build Name".

          Noam Manos added a comment - I would even extend this feature, to set build name even when SCM checkout failed. Currently, when SCM fails - the "Set Build Name" doesn't occur before or after build, because build was not initiated if SCM failed. To workaround this, I had to add flexible post build (plugin) that runs "Update build Name".

            kohsuke Kohsuke Kawaguchi
            toshee2000 Elgin Peteza
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: