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
1
vote
3 answers

Sonarqube not reporting results back to Jenkins and Gerrit

Context: Right now I have a Jenkins freestyle job that is triggered by some Gerrit events. When it is triggered, it downloads the changes and runs a Sonarqube Analysis on them. After the analysis is done, it is supposed to post comments on Gerrit…
lockijazz
  • 75
  • 2
  • 9
1
vote
1 answer

Jenkins Gerrit Trigger with parameters

We use Jenkins with Gerrit to trigger certain jobs on Jenkins. We use Trigger on Comment Added Contains Regular Expression to run the job. The job executes a shell script using maven mvnw command with some command line parameters for maven…
Mukund Jalan
  • 1,145
  • 20
  • 39
1
vote
2 answers

How to return "Not built" to Gerrit Trigger Plugin

There are 4 kind gerrit command in gerrit plugin settings. Success / Fail / Unstable / Not Built. I could return "success/fail" from my job to gerrit plugin, by using exit 0/1, And "success/fail" gerrit command was executed. But I don't Understand…
H.H
  • 364
  • 3
  • 11
1
vote
1 answer

Gerrit build posting comments from post build actions in Jenkins

I have integrated Sonar gerrit plugin to post sonar reports as comment in the gerrit web ui. Posting the sonar comments is configured in the post build action of the gerrit build to be posted under sonar-verified category.Verified scoring is posted…
saurav
  • 5,388
  • 10
  • 56
  • 101
1
vote
2 answers

Scoring in Code-Review gerrit category is not happening

I have configured Sonar gerrit jenkins plugin which is initiated by gerrit trigger plugin through gerrit rest APIs. https://wiki.jenkins-ci.org/display/JENKINS/Sonar+Gerrit I followed all the instructions mentioned and it working fine. There is only…
saurav
  • 5,388
  • 10
  • 56
  • 101
1
vote
1 answer

Can't connect to Gerrit ssh shell after installation

I have installed Gerrit and added my SSH key to settings. Port 29418 is opening. But now I can't login with SSH. I created jenkins user for Gerrit, neither could I correctly configure the server connection in Jenkins Gerrit Trigger. Could you help…
LearnToDeath
  • 53
  • 1
  • 9
1
vote
1 answer

Jenkins gerrit trigger couldn't find any revision to build

I am stuck with the problem i have with Gerrit trigger plugin for Jenkins Earlier all was ok but suddenly build broke, configuration did not changed. Here is the log i have. Building in workspace /var/lib/jenkins/jobs/Jobname/workspace > git…
1
vote
1 answer

Jenkins doesn't trigger job on gerrit event

I cant figure out how to setup gerrit trigger plugin. Manual build start builds current repo correctly. Test gerrit plugin connection is "Success". Gerrit is configured according to plugin description article:…
NoEscape
  • 211
  • 1
  • 10
1
vote
3 answers

Jenkins doesn't verify/review change on Gerrit

I'm trying to configure a local installation of Jenkins to review uploaded changes on Gerrit. So far, I've gotten Jenkins to detect uploaded changes and build them (using Gerrit Trigger). However, while the build concludes successfully on Jenkins,…
Aamir Khan
  • 2,945
  • 2
  • 25
  • 32
1
vote
0 answers

Building continuous integration environment with git, Jenkins, and Gerrit

I am building a continuous integration with git, Jenkins and Gerrit. My Jenkins version is 1.620, my Gerrit is 2.11.2 and Gerrit trigger is 2.14. In Gerrit trigger of Jenkins, I set: hostname: localhost frontend URL :http://localhost ssh port…
Wayne Cao
  • 35
  • 6
1
vote
1 answer

Gerrit event on Jenkins doesn't trigger automatically on git push

I'm new to Jenkins/Gerrit. I'm trying to integrate gerrit with jenkins. I've a jenkins project setup to be triggered when there is a changeset created (push) in my git repository, which is hosted with a gerrit project. The master branch doesn't…
sheikh
  • 117
  • 4
  • 13
0
votes
0 answers

Can Gerrit Trigger Plugin send +1 Verify vote to Gerrit commit without triggering Jenkins job?

I added a file to the Forbidden Files so that Jenkins jobs won't be started by the Gerrit trigger plugin when a commit only includes Forbidden Files, however in this situation I need to add +1 verify label to my commit. I see in the Gerrit trigger…
0
votes
2 answers

Trigger build when the content of specific file merged in gerrit repo

I am looking to create a Jenkins pipeline job that triggers when the content of the file filename.json changes merged in the Gerrit repository's master branch. . ├── Readme ├── tools- └── src └── main ├── com │   └── xx …
0
votes
1 answer

gerrit triggerOnEvents entire list for groovy script

Team, where can i find the entire list of this function triggerOnEvents? I want to know what all exists and use them as i need. like i knew two that i specified but I want to know what the all that exists in that list. ref…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
0
votes
0 answers

gerritTrigger with regex on multiple filePaths and topic

Team, my situation is to trigger based on topic and file paths. so is there a regex that will help me reduce my lookup lines of code? like i have 6 compareType. can i make it one with regex? triggers { gerrit serverName: 'git.com', …
AhmFM
  • 1,552
  • 3
  • 23
  • 53
1 2 3
8 9