Jenkins gerrit-code-review-plugin

34 views
Skip to first unread message

Tech Advantage

unread,
Apr 21, 2020, 9:23:41 AM4/21/20
to Repo and Gerrit Discussion
Hi,

I have a question about the Jenkins gerri-code-review-plugin.
We are currently using the gerrit-trigger plugin and had to declare the checkout scm step to explicitly use the full syntax to use GERRIT_* job parameters.

checkout([$class: 'GitSCM', branches: [[name: "*/${GERRIT_BRANCH}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'BuildChooserSetting', buildChooser: [$class: 'GerritTriggerBuildChooser']], [$class: 'LocalBranch', localBranch: "change-${GERRIT_CHANGE_NUMBER}-${GERRIT_PATCHSET_NUMBER}"]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'blah', ref spec: "${GERRIT_REFSPEC}", url: 'https://review.server/project']]])



Does the gerrit-code-review-plugin helps in this matter ?

According to the doc, only checkout scm seems required.
Does it handle GERRIT_* stuff by itself ?

Thanks,
IG

Luca Milanesio

unread,
Apr 21, 2020, 9:39:20 AM4/21/20
to Tech Advantage, Luca Milanesio, Repo and Gerrit Discussion
No, the checkout SCM isn’t required.

You get roughly the same environment variables as the Gerrit Trigger Plugin gives you.
Luca.

Tech Advantage

unread,
Apr 21, 2020, 10:07:45 AM4/21/20
to Repo and Gerrit Discussion


Le mardi 21 avril 2020 15:39:20 UTC+2, lucamilanesio a écrit :

No, the checkout SCM isn’t required.

You get roughly the same environment variables as the Gerrit Trigger Plugin gives you.

So it listens to pending checks instead of polling open changes ?
 
Luca.
Reply all
Reply to author
Forward
0 new messages