128 questions
0
votes
1
answer
47
views
Why Does My Jenkins Job Reset After Completion When Triggered by Gerrit?
I'm using a Jenkins pipeline that is triggered by Gerrit. After the job completes, it seems to reset, which causes issues with subsequent steps or tracking the results. Here is the relevant part of my ...
0
votes
2
answers
83
views
Gerrit trigger loses connection and it fails to reconnect manually
We have a few Jenkins (version 2.319.1) instances. They have Gerrit Trigger (version 2.30.5) installed. In one of the Jenkins, its Trigger occasionally loses connection to our Gerrit server (version 2....
0
votes
1
answer
515
views
Unable to connect Gerrit to Jenkins with Gerrit Trigger plugin, Connection error: com.jcraft.jsch.JSchException: Auth fail for methods 'publickey'
After updating the OS and Jenkins i cant connect to gerrit server by Gerrit Trigger plugin Connection error : com.jcraft.jsch.JSchException: Auth fail for methods 'publickey'
I have verified that the ...
0
votes
1
answer
849
views
ERROR: Checkout failed on Jenkins Gerrit Trigger
I'm having some problems getting the Gerrit Trigger Jenkins plugin checking out my Gerrit project so was hoping for some help if possible!
I followed the instructions here.
Whilst my Jenkins job is ...
0
votes
1
answer
652
views
Gerrit Trigger lost connection due to com.jcraft.jsch.JSchAlgoNegoFailException
The Gerrit Trigger plugin worked well previously, but from a time point that I couldn't figure out, the connection can never be established with following error message:
Connection error : com.jcraft....
0
votes
2
answers
149
views
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
└── ...
0
votes
1
answer
483
views
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 ...
0
votes
1
answer
114
views
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 ...
1
vote
1
answer
144
views
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 ...
0
votes
1
answer
95
views
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 ...
0
votes
0
answers
89
views
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 ...
0
votes
1
answer
352
views
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....
0
votes
1
answer
533
views
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
...
0
votes
3
answers
1k
views
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 ...
2
votes
0
answers
275
views
Gerrit Trigger doesn't work when a build is running for that gerrit
This is a weird one.
On Jenkins, with Gerrit Trigger, I can trigger my jenkins job just fine using any of the configured triggers.
However, while that job is running - I can not trigger the same job ...
1
vote
1
answer
583
views
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()
}
...
1
vote
0
answers
221
views
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 manuals.
https://www.infoq....
0
votes
1
answer
1k
views
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 ...
0
votes
1
answer
791
views
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 ...
0
votes
0
answers
242
views
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 ...
0
votes
0
answers
82
views
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 ?
0
votes
1
answer
334
views
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).
...
0
votes
1
answer
328
views
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 ...
6
votes
2
answers
4k
views
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 ...
0
votes
1
answer
323
views
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 ...
0
votes
1
answer
95
views
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 ...
0
votes
1
answer
170
views
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 ...
3
votes
1
answer
3k
views
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 ...
0
votes
1
answer
368
views
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 ...
0
votes
2
answers
190
views
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, ...
0
votes
1
answer
466
views
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 ...
0
votes
1
answer
374
views
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.
0
votes
1
answer
1k
views
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 ...
0
votes
1
answer
313
views
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 ...
0
votes
1
answer
2k
views
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) ...
1
vote
0
answers
220
views
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 ...
0
votes
2
answers
1k
views
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 ...
1
vote
2
answers
239
views
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 ...
0
votes
1
answer
3k
views
GERRIT_REFSPEC is always empty in Jenkins pipeline
I've set up a Jenkins pipeline in which I want to run a Jenkinsfile, based on a Gerrit trigger. I have read a lot on here about how to set this up. I have added the GERRIT_REFSPEC variable as ...
0
votes
1
answer
82
views
Is it possible to trigger a job from Jenkins by parsing/receiving an event from Git/Gerrit Replica/Slave server?
I would like to connect my Jenkins to the Git/Gerrit replica/slave server. I want my Jenkins server to start building job once a commit is merged in the replica server. It is possible with Git/Gerrit ...
0
votes
1
answer
1k
views
Gerrit Trigger for new patch set through scripted pipeline
We have integrated Gerrit Code Review with Jenkins through Gerrit Trigger plugin, So with free style job able to validate each patch set pushed to gerrit. It is working perfectly.
Now we have ...
0
votes
0
answers
228
views
How to trigger a jenkins job whenever some changes are pushed to gerrit server
I have to trigger a jenkins job whenever a new patchset is created, that is whenever some changes are pushed to a specific project and specific branch in gerrit server it should trigger that jenkins ...
0
votes
1
answer
889
views
How to trigger multiple builds on a gerrit commit?
I have gerrit project integrated with Jenkins Server.
When i push a commit into gerrit then a jenkins build is triggered for windows OS(configured parameter) only. Now i want the gerrit to trigger a ...
0
votes
0
answers
294
views
fatal: Protocol Error: bad line length : this over Jenkins
I would like to ask a question regarding Jenkins, as I am getting this error while Jenkins going to fetch sub module of the repository, it was running properly but somehow it will getting this kind of ...
0
votes
1
answer
1k
views
How to get parent ID for a commit in a gerrit triggered jenkins pipeline job
In the pipeline code, I need to retrieve the parent ID for a commit in the jenkins pipeline job triggered by gerrit trigger.
I tried to get the parent ID from the gerrit trigger environment variable $...
1
vote
1
answer
2k
views
How to enable rebuild option for a build triggered by Gerrit
I have a Jenkins build, triggered by Gerrit. I have the "Retrigger" option only. I want to have the "Rebuild" option as in plain builds.
Jenkins ver. 2.150.1, Gerrit Trigger 2.27.7, Rebuilder 1.29
0
votes
1
answer
160
views
zuul clone gerrit repository when event triggered?how to stop this?
Every time patchset-created event triggered, zuul clone the whole repository.
how to stop this? because it takes a too long time and makes job starts very slowly.
1
vote
1
answer
5k
views
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 ...
0
votes
1
answer
333
views
Jenkins + Git/Gerrit + Incremental Klocwork Scans
So we have a Jenkins server, we use gerrit to code review our develop branch, we have the Klocwork community plugin installed.
Our Jenkins spawns builds that are +1 verify votes on Gerrit patchset ...
0
votes
1
answer
498
views
Inject all GERRIT env variables as if the Jenkins job was started by gerrit event
This SO answer has the list of environment variables which gets injected automatically when a Jenkins job is triggered by a gerrit event, but if Jenkins is started manually with a gerrit number as ...