Have you tried just adding the gerrit trigger for change merged instead of
polling SCM?
Also, your condition looks wrong, try this:
if [ -z "${GERRIT_EVENT_TYPE}" ] || [ "$GERRIT_EVENT_TYPE" ==
'change-merged' ]
/Jacob
Den tirsdag den 23. maj 2017 kl. 20.58.51 UTC+2 skrev John Mellor:
>
> I
I am using a single Jenkins job for each project in git, with a Gerrit
server. Some of the build steps in these builds push Docker images to the
registry. I am trying to prevent Gerrit verification builds from pushing
these images, while allowing merge and push-button builds to do so.
In the