Trigger Jenkins Job after Artifactory Upload -
i have 2 jenkins jobs.
job 1: uploads build artifactory
job 2: downloads build artifactory , stuff it
right now, job 1 triggers job 2 using parameterized build plugin (job 2 shared amongst many teams @ company, don't want change - it's parameterized job takes artifactory url)
the problem is, seems artifact doesn't finish uploading artifactory before job 2 triggered. job 2 gets 404 when tries download artifact. there way 1) prevent triggering job 2 until artifact has uploaded? or 2) pass artifact directly job 1 job 2 w/out needing upload , download? (the former preferable, since option 2 require changing job 2)
regarding option 1, can use naginator plugin reschedule job 2 if fails.
regarding option 2, can use copy artifact plugin. allow job 2 copy artifacts job 1.
personally, prefer option 1. artifactory right place store binaries :)
there 3rd solution using quiet period setting on job 2 delay start (jenkins: build 1 job after delay).
Comments
Post a Comment