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

Make the BuildNumber that artifacts were copied from available to later build steps.

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: copyartifact-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      When copying artifacts from another job, the build selector can be set to things like "Latest Stable Build".

      I have a couple of places where, having copied in artifact, I'd like to know which build number they came from.

      Admittedly this can be retrived by going to "http://YOURJENKINS/job/JOBNAME/X/buildNumber" where X is "lastBuild", "lastSuccessfulBuild", "lastStableBuild" and so on. However, there is a chance that this will return a different build number is the copy happened just before a build completed.

      I'd like to see this plugin store the build number used e.g. into an environment variable that can be then be access by later build step. The environment variable name would have to be configurable to cope with cases there a build combines artifacts from two different upstream builds.

        Attachments

          Activity

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              grhm Graham Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: