Hi all,

I'm having an issue and I hope that someone might be able to point me in
the right direction.

I'm interfacing Jenkins with Gerrit using gerrit-trigger.  Everything works
well until I approve multiple patch sets at the same time.

Before we start with the example I need to explain that the job in question
has gerrit-trigger configured to trigger on "Change Merged".  Also the job
runs a deploy script.

Example:

Lets say that I submit four patch sets to Gerrit that depend on each other.

ps1 <- ps2 <- ps3 <-  ps4      (patch set 2 depends or 1 etc..)

Now using Gerrit I submit patch set 4.  Nothing happens because it is
dependent on ps3.  Next I submit ps3, then ps2 and finally ps1.  Once I
submit ps1 then Gerrit merges them all at the same time.

At this point gerrit-trigger correctly triggers four jobs in Jenkins.
These jobs are dependent on each other so they run one at a time.  The
first one that runs is for ps4.  The next one is for ps3.  The next one is
for ps2.  The last one is for ps1.

The problem is that I end up with ps1 being the final deployed version.  I
want ps4 to be the last one that is run.  Anyone have any ideas?  I
appreciate your help!


Here are the versions of relevant plugins.

Jenkins 1.551
gerrit-trigger 2.11.0
git-cilient 1.6.2
git-plugin 2.0.1

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to