Questions tagged [gerrit-trigger]

Use this tag for unresolved issues using the jenkins's Gerrit Trigger plugin

Jenkins Plugin, created in 2010 and is still updating releases every month (or less)

It's used for integrating Gerrit:

This plugin integrates Jenkins to Gerrit code review for triggering builds when a "patch set" is created.

Notice it has a required dependency - Structs v.1.1

Jenkins plugin: https://plugins.jenkins.io/gerrit-trigger

Jenkins Wiki: https://wiki.jenkins.io/display/JENKINS/Gerrit+Trigger

Gerrit: https://www.gerritcodereview.com/

Structs: https://plugins.jenkins.io/structs

131 questions
3
votes
1 answer

Configuring gerrit trigger with rabbitmq consumer plugin

I installed Rabbit MQ plugin for Gerrit and configured Gerrit to send stream events to Queue. I installed Gerrit Trigger plugin and Rabbit MQ consumer plugin in my Jenkins and created a test-job to trigger build based on Gerrit event. Gerrit pushes…
sai
  • 31
  • 1
3
votes
1 answer

Can I get Gerrit to notify me when a certain file type has been modified?

I'm the only front-end dev on our team and I would like to be notified whenever one of the other devs pushes a review that touches some "front-end" files (e.g., *.html or *.css). Is this possible? We're using Gerrit v2.9.4.
bernk
  • 1,155
  • 2
  • 12
  • 22
3
votes
2 answers

How to trigger a Jenkins build in Gerrit Trigger on change to project subdirectory

I want to trigger a Jenkins build with Gerrit Trigger only when a change to a file in a specific sub-directory is made. For example... ├── subdir1 │   ├── trigger │ ├── also-trigger ├── subdir2 │   ├── do-not-trigger If any change to a file in…
jeremyjjbrown
  • 7,772
  • 5
  • 43
  • 55
2
votes
0 answers

Gerrit Trigger doesn't work when a build is running for that gerrit

This is a weird one. On Jenkins, with Gerrit Trigger, I can trigger my jenkins job just fine using any of the configured triggers. However, while that job is running - I can not trigger the same job again from the same gerrit so long as the previous…
Elad Avron
  • 1,411
  • 1
  • 18
  • 28
2
votes
1 answer

How to change the location where the gerrit hooks are running from?

I am running into a problem where my gerrit hooks are being triggered from a different directory, I have os.getcwd() as the first line in my change-merged hook,it shows as /mnt/data1/STORE/git/project.git depending on the project the hook is…
carte blanche
  • 10,796
  • 14
  • 46
  • 65
2
votes
3 answers

How to configure server side hooks in Gerrit 2.16

I have started using Gerrit 2.16 as code review tool and want to configure server side hooks to validate the git commit message when a change is committed/pushed to gerrit. Tried using hooks by copying scripts to $GIT_DIR/hooks (scripts like…
cloudops
  • 31
  • 1
  • 5
2
votes
2 answers

Jenkins - how to show downstream jobs build result on Gerrit patch set?

below is my use case, I have jobs A, B, C - A is upstream and B and C are downstream jobs. When a Patch set created in Gerrit, based on the patchset created event I trigger Job A and based on the result of this job, we trigger B and C. After the B…
rameshthoomu
  • 1,234
  • 2
  • 17
  • 33
2
votes
0 answers

gerrit-trigger not notifying gerrit when rest api is enabled

when using the gerrit-trigger plugin with REST-API disabled everything works as expected after enabling the REST-API however it seems like gerrit-trigger is not even trying to set the verify label like he used to when testing the rest connection in…
lucanLepus
  • 161
  • 1
  • 7
2
votes
1 answer

how to configure Gerrit trigger to trigger only when master or branches changes excluding (refs/for/*)?

I am having troubles how to properly configure Gerrit trigger to only triggers when changes are made to master or other branches (excluding refs/for/rev). For now I have type:Path, pattern: **/* but it catches any changes (on master/branches and on…
jozefow
  • 626
  • 3
  • 14
2
votes
1 answer

Jenkins Multi Branch using Gerrit Trigger

A bit of background... We've been using Gerrit + Jenkins for over a year with great success. Adding in code-review and build verification has made our developers much more accountable for what they submit into source. I setup the integration between…
Mike G
  • 1,956
  • 1
  • 30
  • 62
2
votes
1 answer

Can we customize the message back to gerrit in jenkins with variable?

In Jenkins gerrit-trigger plugin, we are able to customize the build message, I wonder whether we can use variable inside ? Like below for ${PORT} ? Update in 2017.03.31, it looks there is issue already JENKINS-37885
Larry Cai
  • 55,923
  • 34
  • 110
  • 156
2
votes
1 answer

What is the use of auth.restTokenPrivateKey in gerrit's secure.config for?

I came across this variable which got generated and stored in secure.config file on gerrit review_site, Is it possible for me to make use of this restTokenPrivateKey value to call rest api to gerrit instance?
2
votes
3 answers

How can I get Jenkins Gerrit Trigger to ignore my CI user's commits?

I want my code review job to ignore changes that came from other Jenkins job, like my release job for example. Those commits can be identified either by the committing user (preferable) or the commit comment string (also acceptable). Basically I…
Jolta
  • 2,620
  • 1
  • 29
  • 42
2
votes
1 answer

Sending messages to gerrit from Jenkins?

I have a voter project in Jenkins triggered by a gerrit event.My task is to figure out how send additional messages to gerrit (apart from the automatically sent by voters) during a build or after it with information regarding build status or which…
kikoegei
  • 21
  • 4
2
votes
1 answer

Jenkins unable to fetch changeId and revisionId

I have configured and integrated Jenkins and Gerrit with Gerrit Trigger Plugin and as part of postbuild task in Jenkins i am executing following script: /opt/sputnik/bin/sputnik --conf /opt/sputnik/myconf.properties --changeId $GERRIT_CHANGE_ID…
Karthik Vee
  • 85
  • 1
  • 1
  • 8
1
2
3
8 9