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

Check if changes was made on repository for scheduled Jenkins job

I got scheduled Jenkins job with numerous stages integrated with gerrit. I want to check on the first phase if any changes was made on repository (new code, auto-bumps,etc...) On scheduled jobs I have no GERRIT_OLDREV and GERRIT_NEWREV…
Ziv M
  • 409
  • 6
  • 18
0
votes
0 answers

How to rebase and lock commit on gerrit?

I am working on merge bot that fetch numerous patches and run jenkins job on it. After fetch I need a way to rebase and lock the commit for uploading new patches. Is there a way to do that ?
Ziv M
  • 409
  • 6
  • 18
0
votes
1 answer

Sonar-Gerrit Jenkins plugin not reporting issues on Gerrit

Jenkins and SonarQube Environment Information Jenkins - 2.235.5 Gerrit Trigger - 2.31.0 Sonar Gerrit Plugin - 2.4.3 SonarQube Scanner for Jenkins - 2.12 SonarQube Version - 6.7.7 (LTS). Configuration: - Freestyle Job. Jenkins Job Console…
user4948798
  • 1,924
  • 4
  • 43
  • 89
0
votes
1 answer

Avoid report to verified/code-review flag for a specific Jenkins Job

I'm using Jenkins with gerrit trigger. We have a global gerrit trigger configuration that says that if a build is marked as NOT_BUILT the plugin should overwrite verified and code-review flag on gerrit with 0. I can't change the default…
Kerby82
  • 4,934
  • 14
  • 48
  • 74
0
votes
1 answer

Recognize gerrit trivial rebase as event on jenkins

I need to find a way to perform part of my jenkins pipeline only when path trivial rebased. if GERRIT_EVENT_TYPE=rebase{ stage ('A'){} } stage ('B'){} Each rebase on gerrit creates new patch, I see on job parameters GERRIT_EVENT_TYPE=new_patch. I…
Ziv M
  • 409
  • 6
  • 18
0
votes
1 answer

how to checkout git branches jenkins gui edits of last 5 days from master repo

Team, I am trying to search for a string that was checked by a user by manually editing jenkins gui configuration . whenever we save this gui configuration, there is a direct commit to master on gerrit. Now, I want to search all the last 3 days of…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
0
votes
1 answer

Gerrit Trigger only once for commits in all projects

I have 10 repos configured in gerrit trigger plugin. But what happens is, if a user has done code changes in all 10 repos and push the code then 10 builds get trigger. How can we avoid that and have only one build triggered for this usecase
Syed
  • 61
  • 2
  • 10
0
votes
1 answer

Can I get the build info of the build which retriggerd the current job?

I have a job hooked to a gerrit server. I've also got the gerrit trigger plugin installed. When I press "retrigger"/"retrigger all", I want the retriggered job to get the build number of the job which retriggered it. Any ideas on how to do…
0
votes
2 answers

Gerrit Trigger Plugin not listed in Jenkins

I created a gerrit server and a jenkins server, and I've been following this Gerrit Trigger Documentation. I went to Jenkins>Manage Jenkins>Manage Plugins, and in all tabs (Updates, Available, Installed) I couldn't find any Gerrit Trigger plugin.…
Steve Lam
  • 3
  • 1
0
votes
1 answer

Emails Not Getting sent with SMTP Server Configured in Gerrit v3.2

I have edited gerrits config file with the required SMTP details: [sendemail] enable = true smtpServer = smtp.server.com smtpServerPort = 25 But the thing is, the details somehow don't work upon gerrit but the same values do work upon…
0
votes
1 answer

Jenkins: Gerrit event trigger plugin

Need some help. Do we have any option to filter specific users for Gerrit event plugin. currently its triggering for all which i don't want to trigger for every one in the team.
raj
  • 1
  • 1
0
votes
1 answer

Jenkins DSL Plugin (>=1.77): Use gerrit-trigger in pipelineJob

I don't know how to use the gerrit-trigger plugin in a DSL pipelineJob. According to the dsl plugin doc triggers is deprecated for pipelineJobs. And from the wiki 1.77 replaced by pipelineTriggers. So I have change my triggers section to properties…
Oscar
  • 1
0
votes
1 answer

How I can "catch" gerrit event on Jenkins

I am using Gerrit plug in with jenkinsfile. After setting trigger for gerrit rebase via excludeTrivialRebase: false I still want to implement some logic on that event. GERRIT_EVENT_TYPE after rebase set to "patchset-created" so it is not a good…
Ziv M
  • 409
  • 6
  • 18
0
votes
1 answer

gerrit trigger - comment added contains regular expression gets started by different expression/trigger

I have 2 independent jobs working on same project1/master. I have configured gerrit trigger to start the job #1(sandbox-build) on comment containing regular expression. The job #1(sandbox-build) starts as expected, but if somebody starts job #2 (by…
Wojtas.Zet
  • 636
  • 2
  • 10
  • 30
0
votes
2 answers

Jenkins Gerrit reporting values plugin removes Code-review's value

I have a Pipeline script with two steps. SonarQube analysis UnitTests If the SonarQube finds warnings, it reports them back to Gerrit as comments and set the Code-review-1. The next stage is the UnitTest and if it is OK the Pipeline will be…
milanbalazs
  • 4,811
  • 4
  • 23
  • 45
1 2 3
8 9