How to execute Jenkinsfile with gerrit trigger plugin for changeset in jenkins? How to execute Jenkinsfile with gerrit trigger plugin for changeset in jenkins? jenkins jenkins

How to execute Jenkinsfile with gerrit trigger plugin for changeset in jenkins?


I think you need to set:

Repositories > Refspec               = $GERRIT_REFSPEC:$GERRIT_REFSPECBranches to build > Branch Specifier = $GERRIT_REFSPEC

Important: do not forget to uncheck the "Lightweight checkout" option.


Or you can use in Jenkins job.

Refspec: ${GERRIT_REFSPEC}

Branch Specifier: FETCH_HEAD.


uncheck “Lightweight checkout” is enough!!gerrit-trigger plugin should mention this!it wasted my half day!