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

Don't create multiple aliases with a single build

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

      As a result, when setting the build alias, you cna end up with 2 aliases if the information you use, is not available on the first pass (or change before the second pass).
      Normally I would think you only want the final version (that is my use case), and would like to see the plugin cleanup the first alias when it differs from the second one.
      (maybe some other users would prefer to have a checkbox config item to be able to preserve both ?)

          [JENKINS-25566] Don't create multiple aliases with a single build

          The reason we follow this pattern is that necessary information might be available at the very beginning so we can set the alias even though the build is in progress. Build name/description setter plugins follow the same path, though the information is overwritten by the end of the build.

          I guess the aliases set at the beginning can be replaced entirely with final ones at the end of the build.

          Oliver Gondža added a comment - The reason we follow this pattern is that necessary information might be available at the very beginning so we can set the alias even though the build is in progress. Build name/description setter plugins follow the same path, though the information is overwritten by the end of the build. I guess the aliases set at the beginning can be replaced entirely with final ones at the end of the build.

          Yes, I understand the reason for doing it at the beginning and then again at the end - I'm fine with that.
          I'd simply like to discard/clean-up the first alias if the second pass creates a different link, to keep things tidy.

          Patrice Matignon added a comment - Yes, I understand the reason for doing it at the beginning and then again at the end - I'm fine with that. I'd simply like to discard/clean-up the first alias if the second pass creates a different link, to keep things tidy.

            Unassigned Unassigned
            pmatignon Patrice Matignon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: