[JIRA] (JENKINS-60412) Additional behavior "Discover open changes" not working for using Gerrit as SCM in Jenkins Shared Library configuration

8 views
Skip to first unread message

felipecassiors@gmail.com (JIRA)

unread,
Dec 9, 2019, 4:26:03 PM12/9/19
to jenkinsc...@googlegroups.com
Felipe Santos created an issue
 
Jenkins / Bug JENKINS-60412
Additional behavior "Discover open changes" not working for using Gerrit as SCM in Jenkins Shared Library configuration
Issue Type: Bug Bug
Assignee: Luca Domenico Milanesio
Components: gerrit-code-review-plugin
Created: 2019-12-09 21:24
Environment: gerrit-code-review-plugin 0.3.7
Jenkins 2.190.3
Gerrit 2.14.20
Priority: Minor Minor
Reporter: Felipe Santos

This plugin adds Gerrit as SCM. However, for using Gerrit as the SCM for configuring a Jenkins Shared Library, the additional behavior "Discover open changes" isn't working.

How to replicate:

Go to Manage Jenkins, click on Configure System. Scroll down to Global Pipeline Libraries. Configure everything as usual, select Gerrit for Source Code Management. You might take note that by default the Additional behavior "Discover open changes" comes. However, if you try to run a pipeline using a version of the library that is not merged yet (open change), Jenkins won't be able to fetch or locate that revision (the version is identified by the Git commit hash).

Workaround:

Since the option "Discover open changes doesn't work, you can delete it. On the additional behavior "Specify ref specs", add one and put the value: +refs/changes/:refs/changes/

Now, if you try to run a pipeline specifying a version not merged yet, Jenkins will be able to fetch it.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

luca.milanesio@gmail.com (JIRA)

unread,
Dec 30, 2019, 9:57:02 AM12/30/19
to jenkinsc...@googlegroups.com

luca.milanesio@gmail.com (JIRA)

unread,
Jan 5, 2020, 1:12:02 PM1/5/20
to jenkinsc...@googlegroups.com

felipecassiors@gmail.com (JIRA)

unread,
Jan 5, 2020, 8:59:03 PM1/5/20
to jenkinsc...@googlegroups.com

Checked, everything works fine without having to specify any Refspec, just by using the addiotional behavior "Discover open changes"

luca.milanesio@gmail.com (JIRA)

unread,
Jan 6, 2020, 6:26:02 AM1/6/20
to jenkinsc...@googlegroups.com
Luca Domenico Milanesio closed an issue as Fixed
 

Considering this as fixed from v0.4.1

Change By: Luca Domenico Milanesio
Status: Open Closed
Resolution: Fixed
Released As: 0.4.1
Reply all
Reply to author
Forward
0 new messages