Gerrit + Jenkins: how to trigger an action after the merge is complete OR the review is abandoned? -


i current trigger jenkins builds on git push refs/for/ via gerrit trigger in jenkins (at start of review). produces build suitable testing , verification prior review completion. when review done (and necessary rebasing finished) review marked complete , triggers final merge of code git (fast-forward only).

this works, i'd prefer park build artifacts jenkins somewhere special until review merged, @ time last build's artifacts go somewhere else (if review abandoned artifacts instead purged).

i thought might create special post-merge job in jenkins , have trigger on merge, since want trigger such job if branch abandoned don't think merge trigger cut it. is there gerrit/jenkins trigger that'll me automate more exactly? (currently have main build job per major component... might need 1 global job triggers merged component handle final disposition of said artifacts.)

jenkins has trigger "change abandoned" too.

there's no problem having more 1 jenkins job per branch/change/commit/push, both fire (and return combined comment on gerrit there's no email spam).

you can create new global jobs trigger on merge or abandoned (just add both triggers). build or post-build action can shell script or utility program want.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -