Re: Gerrit differentiate between a verification build and a merge build

2017-05-24 Thread Jacob Larsen
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

Gerrit differentiate between a verification build and a merge build

2017-05-23 Thread John Mellor
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