-
Bug
-
Resolution: Not A Defect
-
Major
-
None
This issue appears in the "Copy Artifact Plugin" Jenkins plugin, when the option "Upstream build that triggered this job" is selected.
Reproduction:
1. Create a "Build A" that stores an artifact at the end of each build
2. Create a "Build B" that is a downstream of "Build A" (Build A --> Build B)
3. Make "Build B" to block while "Build A" is building
4. Make "Build B" to copy the artifact from "Upstream build that triggered this job"
5. Trigger the "Build A" twice (e.g. build 1 and then build 2)
6. "Build B" will be triggered once, but in the logs it will have the following:
Started by upstream project "Build A" build number 1 originally caused by: Started by user <Your user name> Started by upstream project "Build A" build number 2 originally caused by: Started by user <Your user name>
However, it will also say:
Copied 1 artifact from "Build A" build number 1
Issue:
The "Build B" will never copy the artifacts of the build 2
This means that someone will have to manually trigger "Build B"