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
0
votes
1 answer

GERRIT_REFSPEC is always empty in Jenkins pipeline

I've set up a Jenkins pipeline in which I want to run a Jenkinsfile, based on a Gerrit trigger. I have read a lot on here about how to set this up. I have added the GERRIT_REFSPEC variable as parameter and $GERRIT_REFSPEC under Advanced->Refspec in…
user11852550
0
votes
1 answer

Is it possible to trigger a job from Jenkins by parsing/receiving an event from Git/Gerrit Replica/Slave server?

I would like to connect my Jenkins to the Git/Gerrit replica/slave server. I want my Jenkins server to start building job once a commit is merged in the replica server. It is possible with Git/Gerrit Main server, but not sure whether this can be…
0
votes
1 answer

Gerrit Trigger for new patch set through scripted pipeline

We have integrated Gerrit Code Review with Jenkins through Gerrit Trigger plugin, So with free style job able to validate each patch set pushed to gerrit. It is working perfectly. Now we have requirement to change to Jenkins Scripted pipeline. So…
user4948798
  • 1,924
  • 4
  • 43
  • 89
0
votes
0 answers

How to trigger a jenkins job whenever some changes are pushed to gerrit server

I have to trigger a jenkins job whenever a new patchset is created, that is whenever some changes are pushed to a specific project and specific branch in gerrit server it should trigger that jenkins job. I have installed the Gerrit plugin in…
0
votes
1 answer

How to trigger multiple builds on a gerrit commit?

I have gerrit project integrated with Jenkins Server. When i push a commit into gerrit then a jenkins build is triggered for windows OS(configured parameter) only. Now i want the gerrit to trigger a build on linux OS as well. So how do we…
Manasa
  • 72
  • 10
0
votes
0 answers

fatal: Protocol Error: bad line length : this over Jenkins

I would like to ask a question regarding Jenkins, as I am getting this error while Jenkins going to fetch sub module of the repository, it was running properly but somehow it will getting this kind of error. I have tried to compile on the local…
0
votes
1 answer

How to get parent ID for a commit in a gerrit triggered jenkins pipeline job

In the pipeline code, I need to retrieve the parent ID for a commit in the jenkins pipeline job triggered by gerrit trigger. I tried to get the parent ID from the gerrit trigger environment variable $GERRIT_PATCHSET_REVISION echo…
spb
  • 13
  • 3
0
votes
1 answer

How to enable rebuild option for a build triggered by Gerrit

I have a Jenkins build, triggered by Gerrit. I have the "Retrigger" option only. I want to have the "Rebuild" option as in plain builds. Jenkins ver. 2.150.1, Gerrit Trigger 2.27.7, Rebuilder 1.29
0
votes
1 answer

zuul clone gerrit repository when event triggered?how to stop this?

Every time patchset-created event triggered, zuul clone the whole repository. how to stop this? because it takes a too long time and makes job starts very slowly.
wym
  • 13
  • 1
0
votes
1 answer

Jenkins + Git/Gerrit + Incremental Klocwork Scans

So we have a Jenkins server, we use gerrit to code review our develop branch, we have the Klocwork community plugin installed. Our Jenkins spawns builds that are +1 verify votes on Gerrit patchset pushes. Currently we only Klocwork scan every few…
user1024792
  • 553
  • 1
  • 10
  • 23
0
votes
1 answer

Inject all GERRIT env variables as if the Jenkins job was started by gerrit event

This SO answer has the list of environment variables which gets injected automatically when a Jenkins job is triggered by a gerrit event, but if Jenkins is started manually with a gerrit number as input parameter, how to fetch those GERRIT_* env…
rodee
  • 3,233
  • 5
  • 34
  • 70
0
votes
1 answer

How to make Jenkins job wait for other job to complete?

I have a job "JobA" which creates a gerrit and does CR+2 on it, the CR+2 evet is going to trigger JobB, I want JobA to wait for JobB's completion before exiting, is this possible? if yes, how?
rodee
  • 3,233
  • 5
  • 34
  • 70
0
votes
1 answer

how to create change using gerrit in browser

I am using gerrit rest api create change in browser 'POST /changes/' change info 'PUT /changes/{change-id}/edit/path%2fto%2ffile' 'PUT /changes/{change-id}/edit:message' 'POST /changes/{change-id}/edit:publish'Conflict 409 on step 4,gerrit…
Sober
  • 3
  • 3
0
votes
1 answer

When the field "Topic" are null/empty the Gerrit Trigger event are not called

I'm struggling with an issue with a CI that I configured in Jenkins where it should be triggered to each Patchset Created in a specific branch, however it shouldn't be trigger in case the field Topic at Gerrit is configured as "foo". So I'm using…
0
votes
2 answers

Gerrit & Jenkins pipeline newest changes

I have a Jenkins and a Gerrit running to validate my code. Jenkins has the gerrit trigger plugin. Gerrit should trigger a declarative pipeline which gets the newest changes and build it. this works: git fetch http://localhost:8081/PipelinePart1…
HamstersBlue
  • 115
  • 1
  • 1
  • 9
1 2 3
8 9