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

Strange behavior in Gerrit / Jenkins trigger "change merged" instantly merges

I have 2 verification triggers in Jenkins: "patchset created" and "change merged". Before when someone in Gerrit clicked on "submit", then Gerrit delayed the merge until Jenkins responded SUCCESS. But now Gerrit merges instantly and in parallel…
Fabian Stern
  • 376
  • 1
  • 9
2
votes
0 answers

Customize Jenkins failure message

I am trying to config Jenkins so that it runs a script to verify the code every time someone pushes their changes to code review branch in Gerrit. My question is regrading the message sent back to Gerrit from Jenkins job. This is what I see in…
GtEx
  • 1,139
  • 1
  • 9
  • 15
2
votes
1 answer

Multiple build's results to be reported on separate lines to Gerrit

I am new to Jenkins and Gerrit. I am using version of Gerrit (2.8.5) & Jenkins (1.596.2). I have written multiple jobs in jenkins with Gerrit event trigger "patchset created". I wanted the results to be displayed on separate lines in Gerrit under…
1
vote
1 answer

How to configure server in Build Triggers → Gerrit event in job created by Job DSL

I'm creating a Jenkins job which gets triggered by a commit to Gerrit. pipelineJob(jobName) { displayName(displayString) triggers { gerrit { events { patchsetCreated() } project('plain:Verify', ['ant:**']) …
1
vote
0 answers

Gerrit Jenkins Integration

I have a Jenkins and Gerrit server running in k8s and docker respectively, however I am stuck at trying to integrate both services together. I've tried following these two…
Metro
  • 873
  • 8
  • 19
1
vote
0 answers

Jenkins failure cause message not part of Gerrit trigger response

I have some Jenkins pipelines, and on failure they send a -1 Verified response back to the gerrit review that triggered it. I also have the Build Failure Analyzer plugin, which I used to scan the console log for failure causes when the job fails. On…
zodac
  • 285
  • 10
  • 26
1
vote
2 answers

Show help about comment triggered jenkins jobs in gerrit

I have a gerrit - jenkins setup. Several jenkins jobs are started by a trigger based on a comment inserted to gerrit. The number of comment based triggers increases continuously. The project has a separate document with information what keyword in a…
Zaboj Campula
  • 3,155
  • 3
  • 24
  • 42
1
vote
1 answer

Build is already in progress (ETA:N/A))?

I am working on Jenkins pipleline (Jenkins Version 2.138).. I pushed a change to gerrit and JobA triggered and started building on slave1 now, when I push another patchset, it says Build is already in progress (ETA:N/A)) Any inputs, why the build is…
rameshthoomu
  • 1,234
  • 2
  • 17
  • 33
1
vote
1 answer

"/var/lib/jenkins/.ssh/id_rsa" does not exist

Jenkins gerrit trigger plugins allways throw an exception: "/var/lib/jenkins/.ssh/id_rsa" does not exist. How can I fixed this problem My linux distribution is centos7
1
vote
1 answer

Jenkins Gerrit trigger plugin gives encoded GERRIT_CHANGE_COMMIT_MESSAGE and GERRIT_EVENT_COMMENT_TEXT

Jenkins Gerrit trigger plugin gives encoded values for GERRIT_CHANGE_COMMIT_MESSAGE and GERRIT_EVENT_COMMENT_TEXT How do I decrypt it - to make it human readable?
Kishan K
  • 671
  • 7
  • 18
1
vote
2 answers

gerrit-trigger is not triggering jenkins job based on the comment posted to patchset

Jenkins Version: 2.73.1 Gerrit-Trigger plug-in version: 2.27.1 Gerrit Version: 2.14.2 my scenario here is: New patch set triggers job 1, job1 posts a message (build first) to that patch set, then job2 should be triggered by that comment, but job2 is…
rameshthoomu
  • 1,234
  • 2
  • 17
  • 33
1
vote
1 answer

Maven build in Jenkins failing with unknown lfiecycle phase error

We are using gerrit trigger to build maven based projects in Jenkins. My build goal is "clean install -e" and then Dmaven.test.skip=true in properties tab. Command specified in the jenkins job's maven build section clean install -e with this…
saurav
  • 5,388
  • 10
  • 56
  • 101
1
vote
1 answer

Jenkins gerrit trigger not reporting verified voting if there are any compilation errors

When I do some code changes and push the code to Gerrit. Jenkins build gets triggered and we usually get verified voting +1 or -1 depending on the result on to the Gerrit UI for that change. Currently, we observed that for any of the compilation…
Md.Sharieff
  • 147
  • 1
  • 2
  • 12
1
vote
1 answer

No verdict from my Jenkins to Gerrithub

I have set up a job in Jenkins to give verdicts to GerritHub.io reviews. The job is triggered correctly when a code change is pushed for review and Jenkins gives comments in GerritHub when build starts and build result. My Gerrit Server definition…
Jocce Nilsson
  • 1,658
  • 14
  • 28
1
vote
1 answer

How to trigger a Jenkins build in Gerrit Trigger on change to two directories

I'm using Gerrit Trigger Plugin for Jenkins to trigger my job. I want to trigger my job ONLY IF files from folder 1 AND folder 2 are changed. However as far as my understanding is concerned, with the following configuration we can trigger the job if…
MOJ
  • 11
  • 3
1 2
3
8 9