Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Blocker
-
Resolution: Fixed
-
Component/s: copyartifact-plugin
-
Labels:None
-
Environment:Linux
-
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:
- create a job whose name has a number in it, e.g. martin-test1
- run the job once to create some artifacts, and archive them
- create another job whose purpose is to copy the artifacts from the first job
- 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
- is related to
-
JENKINS-15764 Name of COPYARTIFACT_BUILD_NUMER_ variable is incorrectly documented
-
- Closed
-
-
JENKINS-29812 Need an Environment variable with multiple build numbers when copying multiple artifacts from different builds of the same project
-
- Closed
-
This issue is nearly (2) years old, unassigned and without comments.
I don't know and cannot imagine the technical issue that lead the developers to elect to remove numbers from the name; but the fix is trivial for anyone brave enough to patch and build the plugin from scratch (see below).
Anyone in the know, please let me know why numbers are removed.