I made some tests :

First job :

  • Triggered on Change Merged
  • Git config : Refspec = $GERRIT_REFSPEC , Branch to build = $GERRIT_BRANCH

Second job :

  • Triggered on Update Refs
  • Git config : Refspec = null, branch to build = $GERRIT_REFNAME

1 test : git push bypassing code review.
Second job is well triggered. It checks out the right code (I checked it on the jenkins job workspace with a git log).
=> Test success, that it is exactly what I expected

2 test : git push to code review then submit
First job is well triggered. It DOES NOT check out the right code. (I checked it on the jenkins job workspace with a git log) In my case it's 3 commits late.
Second job is triggered too (NOT EXPECTED!) but it checks out the right code.
=> Test failed. First job is well triggered but does not checks out the right code, second job is triggered but I did not want to.

Was I wrong on some config?
I can give you the parameters for each test & job if it can help you.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to