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

COPYARTIFACT_BUILD_NUMBER_ does not preserve numbers in job names

    Details

    • Similar Issues:

      Description

      The COPYARTIFACT_BUIL_NUMBER_ variable name does not preserve numbers in job names. It removes numbers from job names. For example, if the job is called martin-test1, then the variable name name is: COPYARTIFACT_BUILD_NUMBER_MARTIN_TEST_ (the number has been removed)

      To reproduce:

      1. create a job whose name has a number in it, e.g. martin-test1
      2. run the job once to create some artifacts, and archive them
      3. create another job whose purpose is to copy the artifacts from the first job
      4. in the build phase of the second job, print the environment variables, e.g. with env, and examine the COPYARTIFACT_BUILD_NUMBER_ variable name. It should be missing the numbers

      This was tested in Jenkins 1.524, with version 1.27 of the Copy Artifacts plugin.

        Attachments

          Issue Links

            Activity

            deepchip Martin d'Anjou created issue -
            mears Josh Davidson made changes -
            Field Original Value New Value
            Priority Major [ 3 ] Blocker [ 1 ]
            ikedam ikedam made changes -
            Link This issue is related to JENKINS-15764 [ JENKINS-15764 ]
            ikedam ikedam made changes -
            Link This issue is related to JENKINS-29812 [ JENKINS-29812 ]
            ikedam ikedam made changes -
            Assignee ikedam [ ikedam ]
            ikedam ikedam made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            ikedam ikedam made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 150385 ] JNJira + In-Review [ 206818 ]

              People

              • Assignee:
                ikedam ikedam
                Reporter:
                deepchip Martin d'Anjou
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: