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
17
votes
6 answers

Gerrit trigger for Jenkins couldn't find any revision to build

I have trouble using Jenkins+Gerrit. Here is what I got so far: Gerrit Trigger configuration in Jenkins seems to be ok: When I push a new changeset, Jenkins build is launched. I used this: Jenkins: settings for Gerrit Trigger problems to also be…
MisterPatate
  • 287
  • 1
  • 2
  • 16
7
votes
3 answers

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

We use gerrit-trigger in Jenkins, the build is triggered when a new changeset is pushed for review. Now we want to introduce pipeline and use solution Defining a pipeline in scm Therefore we expect when the build is triggered, below pipeline plugin…
Larry Cai
  • 55,923
  • 34
  • 110
  • 156
6
votes
2 answers

Jenkins Gerrit-Trigger not reporting +1 verified after successful job run

I'm currently attempting to issue a "+1 Verified" using the Jenkins Gerrit-Trigger, but some reason the +1 is failing. The permissions seem to be in order as the plugin is successfully able to issue "-1 Verified" and "Build Started" comments to the…
MarkoPee
  • 131
  • 2
  • 9
5
votes
2 answers

Jenkins Gerrit Trigger - "/var/lib/jenkins/.ssh/id_rsa" is not a valid key file

I've installed Jenkins in an Ubuntu server by following the documentation from Jenkins Install documentation and I am trying to set up Gerrit Trigger Plugin. While setting up Administrative Settings section the SSH Keyfile section always gives the…
5
votes
2 answers

how to add gerrit-trigger events inside Jenkins pipeline code, inside Jenkinsfile

I would like to add gerrit trigger events inside Jenkinsfile, like we have in JobDSL, triggers { upstream('pipeline_properties', 'UNSTABLE') gerrit { events { refUpdated() …
5
votes
0 answers

Jenkins Gerrit polling fails: constantly triggering builds

So we're using Gerrit Trigger (2.23.0) on our Jenkins CI build manager & using docker containers for the actual builds. The issue that has recently popped up in some of our branches the Gerrit Repo polling is failing and causing it to "detect…
TemporalWolf
  • 7,727
  • 1
  • 30
  • 50
5
votes
2 answers

exact use of "Forbidden File path" of the Jenkins Gerrit Trigger plugin

The Jenkins Gerrit Trigger Plugin has a button "Add Forbidden File path" but actually there is not too much documentation avaiable for it. So what is the exact behavior of it? Does it inhibit the trigger if one of the changed files match? Or does…
Roman
  • 707
  • 8
  • 16
4
votes
1 answer

Repo, gerrit & Jenkins co-working

I have a problem with getting Google's Repo, gerrit & Jenkins working together. our setup: we have a Repo build out of few git repositories, which are all on our gerrit server. Manifest is also there. Workflow: user do changes in few files which…
Ilan
  • 41
  • 1
4
votes
2 answers

Jenkins gerrit trigger not fetching my change when building

I have configured jenkins with gerrit trigger plugin to validate every commit we review to gerrit. I am expecting this trigger to include my latest change with original repo and make a build. But, it is cloning only repo project and compiling…
XiaoSI Lu
  • 41
  • 1
  • 3
4
votes
1 answer

Can i do sonar scan on the Gerrit patch?

As part of my precheckin workflow in Gerrit I want to configure sonarqube to perform scan on the submitted patch, I am using sonar-gerrit plugin in my Jenkins and configured gerrit-trigger to run this analysis job. This job is configured with…
3
votes
1 answer

Pass environment variables from parent job to child job Jenkins pipeline

I have two pipeline jobs. Parent job: This job contains Gerrit trigger and builds on every patch-set created. After building of this job I can see the Gerrit environment variables into the build environment variable section. Child job: which runs…
sam
  • 203
  • 1
  • 3
  • 15
3
votes
1 answer

How to download one specific gerrit change set in jenkins git plugin?

Normally we use gerrit trigger plugin in jenkins to download the gerrit changeset. But in some case, we want to download the specific changesets directly. For example openstack Change #503032 git pull…
Larry Cai
  • 55,923
  • 34
  • 110
  • 156
3
votes
3 answers

Gerrit not sending emails

I have set up a Gerrit server and trying to make it send emails (for all events). But for some reason Gerrit doesn't send any emails. error_logs shows absolutely no data, that means it is not even trying to send emails. Here is relevant part of my…
ManyuBishnoi
  • 339
  • 5
  • 9
3
votes
1 answer

Jenkins Failed to connect to gerrit repository (Windows installation)

I looked around Stackoverflow and google a lot but I am not able to solve my issue. My aim : I want to set up Jenkins to use git SCM to clone a repository host by gerrit My Jenkins config Jenkins version 2.7.1 running on windows as a service Git…
Flows
  • 3,675
  • 3
  • 28
  • 52
3
votes
1 answer

Sonar-Gerrit Jenkins plugin ambiguous results

I use Gerrit-Sonar plugin in my Jenkins jobs. When I run the job, I get an exact result in the logs, that "n issues were found" and the report was sent to Gerrit. However, when I watch the review in Gerrit, it says that "No issues were found" and…
user
  • 3,058
  • 23
  • 45
1
2 3
8 9