Clone of spark404's Parent of Parent fix#18
Conversation
that eventually triggered this buikd. Not just the direct parent. Added a recursive call to getBuild to make that happen. Including unit test scenario with a grandparent job which has the artifact that the job wants.
|
Jenkins » copyartifact-plugin #23 SUCCESS |
|
What about spark404@dee6d89 from #15? I guess it is not applicable here? |
There was a problem hiding this comment.
Clearer to consolidate: have one block for if (cause instanceof UpstreamCause) inside of which is a nested test for if (jobName.equals(((UpstreamCause)cause).getUpstreamProject())). (In which case you can also introduce a variable for (UpstreamCause)cause.)
|
@jglick I was just taking spark404's version. Good comments though, implemented them. I tested in an Jenkins instance too. |
|
Jenkins » copyartifact-plugin #25 UNSTABLE |
|
Cloudbees ran so slow we crossed a 10 second threshold. Extending to 20 seconds. |
|
Jenkins » copyartifact-plugin #26 SUCCESS |
|
There we go, it just needed a little more time. |
Clone of spark404's Parent of Parent fix
The pull request via #15 didn't seem to work. Full credit goes to @spark404 for this original pull request.