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

Jenkins resets username and password in Gerrit\Sonar plugin after autorestart

I use Jenkins with Gerrit-Sonar plugin and face a very weird issue: I configure the plugin to handle Gerrit REST API with my username\password When I run the job the first time, it passes, but after it Jenkins goes to auto-restart, saying "Please…
user
  • 3,058
  • 23
  • 45
0
votes
1 answer

Using gerrit rest api for Jenkins gerrit trigger

i want to enable Rest API for our gerrit tigger jenkins plugin. So whenever i give the http username/password in the rest api enablement section of the gerrit tigger plugin. i get the following exception Connection error :…
saurav
  • 5,388
  • 10
  • 56
  • 101
0
votes
0 answers

Jenkins is not fetching due to Gerrit-Trigger Parameters issues

I am configuring Gerrit-Trigger/Jenkins Job that does verify when the developer check In the code. I see the job is failing since Gerrit Parameters are not picked by Jenkins. Below is the error which I am getting: > /usr/bin/git -c core.askpass=true…
sunil
  • 65
  • 3
  • 11
0
votes
0 answers

Jenkins Gerrit plugin offers patch revision instead of master following a merge to master

I experienced a merge order problem whereby a gerrit change ("100" for arguments sake) was code reviewed after a later change ("101") had been code reviewed. This caused jenkins to build and release gerrit ID "100", and the code previously released…
Jepper
  • 1,092
  • 3
  • 11
  • 24
0
votes
1 answer

Jenkins clones wrong branch/version from GIT/Gerrit

I am using Gerrit review combined with Jenkins. As a developer pushes his/hers code to GIT they push using: git push HEAD:refs/for/master In jenkins I use the gerrit trigger to trigger build when "patchset created" The settings in Jenkins look…
jne
  • 457
  • 2
  • 9
  • 22
0
votes
0 answers

How can I see Gerrit environment variables passed from the gerrit trigger in Jenkins?

I need to see the Gerrit environment variables that are passed from the gerrit trigger in Jenkins to (in my case) a gradle build. The keys are shown here. I was hoping that adding this to the build.gradle would show them: ext.systemProperties =…
Return_Of_The_Archons
  • 1,731
  • 3
  • 20
  • 26
0
votes
1 answer

'PROJECT' is not a valid parameter. Did you mean null?

I have setup Gerrit and Jenkins. I have configured Jenkins' gerrit-trigger plugin so Gerrit changes are validated by Jenkins. Now, want to automatically create Jenkins jobs, using Jenkins jobgenerator plugin when a new repository is created in…
Franklin Piat
  • 3,952
  • 3
  • 32
  • 45
0
votes
0 answers

Push after two jobs

I use gerrit + Jenkins. And I have two jobs: build, tests. And I want to push commits in remote/master after build-ok and tests-ok, if build-ok and tests-failed commit will not push. But now my commits push if build-ok only, and No matter what…
-1
votes
1 answer

How to trigger job when a new patchset is uploaded for an existing change

My job works well when the patchset is uploaded for first time. After that when a new patchset is again uploaded on the same gerrit change, it does not trigger again. I already tried the Trigger On Comment Added Contains Regular Expression. I have…
SBH
  • 1
  • 2
-1
votes
1 answer

Gerrit configuration; Unable to create new object

In the documentation of the Jenkins "Gerrit Trigger" plugin is written that is needed the following configuration in Gerrit: Gerrit web interface > People > Create New Group : "Event Streaming Users". Add your jenkins user. Admin > Projects >…
Anders Persson
  • 307
  • 1
  • 3
  • 17
-1
votes
1 answer

Automatically resolve merge conflicts

I use git + Jenkins + gerrit. And how to automatically resolve merge conflicts? I always see status in webui "Submitted, Merge Pending". I tried all submit type: Fast-Forward, Merge if necessary, Rebase if necessary, Always Merge, Cherry Pick. But…
1 2 3
8
9