Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
297 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 ...
Ziv M's user avatar
  • 417
0 votes
2 answers
2k views

Can Jenkins Pipeline checkout a commit that has not been merged?

I am attempting to test a Jenkinsfile, with docker images, and various tests using a Jenkins Pipeline. I am able to checkout the latest code from Gerrit using a branch name or a merged commit hash. ...
Dr Bass's user avatar
  • 33
0 votes
2 answers
2k views

Gerrit & Jenkins pipeline newest changes

I have a Jenkins and a Gerrit running to validate my code. Jenkins has the gerrit trigger plugin. Gerrit should trigger a declarative pipeline which gets the newest changes and build it. this works: ...
HamstersBlue's user avatar
1 vote
1 answer
2k views

Git checkout in Jenkins pipeline misses commit's tag

One of my Jenkins pipeline jobs should consider a tag on the commit that is currently build. But it seems the tag on the topmost commit is not available at build time. Let's say I have a simple ...
Max N.'s user avatar
  • 1,151
7 votes
3 answers
9k views

How to execute Jenkinsfile with gerrit trigger plugin for changeset in jenkins?

We use gerrit-trigger in Jenkins, the build is triggered when a new changeset is pushed for review. Now we want to introduce pipeline and use solution Defining a pipeline in scm Therefore we expect ...
Larry Cai's user avatar
  • 60.4k
2 votes
1 answer
2k views

how to configure Gerrit trigger to trigger only when master or branches changes excluding (refs/for/*)?

I am having troubles how to properly configure Gerrit trigger to only triggers when changes are made to master or other branches (excluding refs/for/rev). For now I have type:Path, pattern: **/* but ...
jozefow's user avatar
  • 786