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
0 answers

how to set href when gerritReview message is posted from jenksinfile

Team, I have jenkinsfile that is posting the entire url. is there a way I can set a name instead that user sees name alone and can click it? post { success { gerritReview message: "Verification Succeeded:…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
0
votes
1 answer

jenksinfile to post long comment in multiple lines using gerrits plugin

I am using gerrits plugin to post comments to gerrit. how to post a new line or say, break the comment into multiple newlines? below is going as a comment on gerrit as single line. I want to break it in two 3 lines. how would…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
0
votes
0 answers

Comment added event in Gerrit trigger plugin is not able to trigger Jenkins job using Gerrit 2.16 version

I am unable trigger Jenkins job with comment added event using Gerrit trigger plugin in Gerrit 2.16 version I am trying to trigger Jenkins job when ever Gerrit commit takes with specific commit message I tried all possible event in Gerrit trigger…
0
votes
1 answer

jenkins dsl to gerritTrigger based on change in filepath

Team, i have below working for triggering builds when user sets in comment test in gerrit gui reply. but I need to know how could i trigger if there is a change in path. triggers { gerrit customUrl: '', gerritProjects: [[ …
AhmFM
  • 1,552
  • 3
  • 23
  • 53
0
votes
0 answers

Jenkins-Gerrit Integration: It is possible to attach a file to a gerrit comment?

Currently I have a CI/CD using jenkins and gerrit. I already have the jenkins and gerrit communicating using the Gerrit Trigger Plugin. I am able to increase and decrease labels like the Code-Review one and I am also able to send comments to gerrit.…
0
votes
1 answer

How to set order to Gerrit Trigger builds in Jenkins?

My Gerrit Server events are integrated to Jenkins (via Gerrit Trigger plugin) in such a way that 3 different Jenkins builds are triggered (say A,B,C) when Code Review +2 is received on a Gerrit PatchSet. Currently any of the A, B or C builds are…
0
votes
0 answers

Jenkins Gerrit code review plugin doesn't allow me to use Gerrit Trigger plugin

We use gerrit as our SCM and I'm configuring tests in jenkins to have -+1 opinion on our code reviews. I have configured multibranch pipeline according documentation. I can see branches in the branch view but no jobs are triggering. I have gerrit…
0
votes
0 answers

Jenkins Gerrit trigger on all branches except master/main/origin and other's branches

I have a build in Jenkins triggered by Gerrit and it is being triggered by every change patchset that is being pushed by every user. I am testing my changes and just want to trigger this only my change for now and then I will open for others. so I…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
0
votes
0 answers

Sonar-Gerrit integration shows error in Jenkins

There is a Jenkins freestyle job that is triggered by some Gerrit events.In response to triggers, it downloads the changes and runs a Sonarqube Analysis. The Sonarqube comments detailing the results are to be posted on Gerrit after the analysis is…
0
votes
0 answers

module object has no attribute parse_spec

Environment:- OS : Ubuntu20.04 Python:2.7.18 Problem:- I have gerrit trigger plugin installed in jenkins., while building my patch-set it always fails with below error gbp parse spec failed. 'module' object has no attribute 'parse_spec' I have…
Ekam
  • 19
  • 4
0
votes
1 answer

Unable to add Gerrit server to Jenkins, With the Gerrit Trigger plugin, "Connection error : com.jcraft.jsch.JSchException: Auth fail"

I want to add my Gerrit Server to Jenkins by using the Gerrit Trigger plugin. However, When i click the "Test Connection" button i get the error "Connection error : com.jcraft.jsch.JSchException: Auth fail" I have verified that the Jenkins account…
0
votes
1 answer

jenkins configuration for building on different branches

I am doing code review with gerritcodereview and I need to create a jenkins pipeline for CI, CD. I am using the events triggered by gerrit trigger plugin. I want to obtain this: PastchSet Created build start on refs/changes/**/**/** branch report…
dandelionn
  • 153
  • 2
  • 7
0
votes
2 answers

GERRIT_REFSPEC not recognized during scm git checkout - Jenkinsfile declarative

I have a declarative pipeline that uses a kubernetes agent. pipeline { agent { kubernetes { yamlFile "file.yml" } } ... } The pipeline is started by a Gerrit trigger, the GERRIT_REFSPEC parameter is provided by…
0
votes
1 answer

Jenkins Gerrit-trigger leaving comments

Ive setup a Jenkins pipeline and defined it to trigger based on a Gerrit event which works fine. However, every time a build is triggered, it leaves a comment in the gerrit Jenkins Build.svc Patch Set 1: Build Started and based on its success and…
ealeon
  • 12,074
  • 24
  • 92
  • 173
0
votes
1 answer

Gerrit trigger trouble with ref-update

Gerrit Trigger 2.32.0 I configuration "Trigger on" with "Ref Updated" to support push event.But I find when I reply on the pathset with comment, Ref Updated is triggered. Param GERRIT_REFNAME is refs/changes/96/996/meta. I don't know how to…
JainPing
  • 75
  • 1
  • 7
1 2 3
8 9