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

Need an Environment variable with multiple build numbers when copying multiple artifacts from different builds of the same project

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: copyartifact-plugin
    • Labels:
    • Environment:
      Jenkins 1.609.1 running inside Docker container
      Copy Artifact Plugin Version 1.35.2
    • Similar Issues:

      Description

      The current strategy of COPYARTIFACT_BUILD_NUMBER_MYPROJNAME does not work when copying artifacts from two or more builds of the same project. The build number is overwritten by each artifact copy step.

      We're running tests on one project and then comparing two or more results of the same test by copying those artifacts. However it would be useful to have an environment variable with a list of all the build numbers that were accessed by the copy artifact step.

      Please see the Parameterized Trigger Plugin for an example of how this could be done. What they have is an environment variable that returns a comma separated list of build numbers.

        Attachments

          Issue Links

            Activity

            nicolas_avenza nicolas di noia created issue -
            nicolas_avenza nicolas di noia made changes -
            Field Original Value New Value
            Description The current strategy of COPYARTIFACT_BUILD_NUMBER_MYPROJNAME does not work when copying artifacts from two or more builds of the same project.

            We're running tests on one project and then comparing two or more results of the same test by copying those artifacts. However it would be useful to have an environment variable with a list of all the build numbers that were accessed by the copy artifact step.

            Please see the [Parameterized Trigger Plugin|https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin] for an example of how this could be done. What they have is an environment variable that returns a comma separated list of build numbers.
            The current strategy of COPYARTIFACT_BUILD_NUMBER_MYPROJNAME does not work when copying artifacts from two or more builds of the same project. The build number is overwritten by each artifact copy step.

            We're running tests on one project and then comparing two or more results of the same test by copying those artifacts. However it would be useful to have an environment variable with a list of all the build numbers that were accessed by the copy artifact step.

            Please see the [Parameterized Trigger Plugin|https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin] for an example of how this could be done. What they have is an environment variable that returns a comma separated list of build numbers.
            nicolas_avenza nicolas di noia made changes -
            Environment Jenkins 1.609.1 running inside Docker container Jenkins 1.609.1 running inside Docker container
            Copy Artifact Plugin Version 1.35.2
            ikedam ikedam made changes -
            Link This issue is related to JENKINS-18938 [ JENKINS-18938 ]
            nicolas_avenza nicolas di noia made changes -
            Attachment buildselectorparameter.png [ 30434 ]
            ikedam ikedam made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Assignee ikedam [ ikedam ]
            Resolution Fixed [ 1 ]
            nicolas_avenza nicolas di noia made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 164888 ] JNJira + In-Review [ 209103 ]

              People

              • Assignee:
                ikedam ikedam
                Reporter:
                nicolas_avenza nicolas di noia
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: