[JIRA] (JENKINS-60965) Not able to build changes in multipipeline branch

31 views
Skip to first unread message

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 9:16:03 PM2/4/20
to jenkinsc...@googlegroups.com
honghan wong created an issue
 
Jenkins / Bug JENKINS-60965
Not able to build changes in multipipeline branch
Issue Type: Bug Bug
Assignee: Luca Domenico Milanesio
Components: gerrit-code-review-plugin
Created: 2020-02-05 02:15
Environment: Jenkins version: 2.219
Gerrit Code Review Plugin: 0.41
Gerrit Version: 3.1.2
Gerrit Trigger Version: 2.30.3
Gerrit Check Plugin: 6fa8c9683d
Gerrit Webhook: 3.1.2
Labels: plugin
Priority: Major Major
Reporter: honghan wong

Jenkins won't build the changeset even it can successfully detect it.

The configuration in Jenkins is as below:

--Within Repository--

Discover open changes

--Additional--

Specify ref specs

> +refs/heads/:refs/remotes/@{remote}/

> +refs/changes/:refs/remotes/@{remote}/

 

{{I am not sure what breaks the changes }}

The multipipeline branch log is as below:

> git rev-parse --is-inside-work-tree # timeout=10
Setting origin to https://example.com/myrepo
{{ > git config remote.origin.url https://example.com/myrepo # timeout=10}}
Fetching origin...
Fetching upstream changes from origin
{{ > git --version # timeout=10}}
{{ > git config --get remote.origin.url # timeout=10}}
using GIT_SSH to set credentials gerrit robot
{{ > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/ refs/changes/22/122/2:refs/remotes/origin/22/122/2 # timeout=10}}
{{ > git rev-parse --is-inside-work-tree # timeout=10}}
Setting origin to https://example.com/myrepo
{{ > git config remote.origin.url https://example.com/myrepo # timeout=10}}
Fetching & pruning origin...
Fetching upstream changes from origin
{{ > git --version # timeout=10}}
{{ > git config --get remote.origin.url # timeout=10}}
using GIT_SSH to set credentials gerrit robot
{{ > git fetch --tags --progress --prune origin +refs/heads/:refs/remotes/origin/ refs/changes/22/122/2:refs/remotes/origin/22/122/2 # timeout=10}}
Seen branch in repository origin/master
Seen 1 remote branch
Checking 1 branches ...
Filtered 1 branches ...
{{ Checking branch master}}
{{ ‘Jenkinsfile’ found}}
master meets the criteria
{{ > git rev-parse --is-inside-work-tree # timeout=10}}
Setting origin to https://example.com/myrepo
{{ > git config remote.origin.url https://example.com/myrepo # timeout=10}}
Fetching origin...
Fetching upstream changes from origin
{{ > git --version # timeout=10}}
{{ > git config --get remote.origin.url # timeout=10}}
using GIT_SSH to set credentials gerrit robot
{{ > git fetch --tags --progress origin +refs/heads/master:refs/remotes/origin/master # timeout=10}}
No changes detected: master (still at 20e02616cfc6e43867d17b322ee09509ea56002f)
Processed 0 branches
Processed 0 changes
[Wed Feb 05 09:51:51 MYT 2020] Finished branch indexing. Indexing took 0.88 sec
Finished: SUCCESS

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

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 9:18:02 PM2/4/20
to jenkinsc...@googlegroups.com
honghan wong updated an issue
Change By: honghan wong
Jenkins won't build the changeset even it can successfully detect it.

The configuration in Jenkins is as below:

-- - Within Repository-- -

{{Discover open changes}}

--
- Additional-- -

Specify ref specs

{{> +refs/heads/*:refs/remotes/@\{remote}/*}}

{{> +refs/changes/*:refs/remotes/@\{remote}/*}}

 

{
\ {I am not sure what breaks the changes }}


{{The multipipeline branch log is as below:}}

{{ > git rev-parse --is-inside-work-tree # timeout=10 }}
{{ Setting origin to [ https://example.com/myrepo }} ]
{{ > git config remote.origin.url
[ https://example.com/myrepo ] # timeout=10}}
{{ Fetching origin... }}
{{ Fetching upstream changes from origin }}
\ {{ > git --version # timeout=10}}
\ {{ > git config --get remote.origin.url # timeout=10}}
{{ using GIT_SSH to set credentials gerrit robot }}
\ {{ > git fetch --tags --progress origin +refs/heads/ * :refs/remotes/origin/ * refs/changes/22/122/2:refs/remotes/origin/22/122/2 # timeout=10}}
\ {{ > git rev-parse --is-inside-work-tree # timeout=10}}
{{ Setting origin to [ https://example.com/myrepo }} ]
{{ > git config remote.origin.url
[ https://example.com/myrepo ] # timeout=10}}
{{ Fetching & pruning origin... }}
{{ Fetching upstream changes from origin }}
\ {{ > git --version # timeout=10}}
\ {{ > git config --get remote.origin.url # timeout=10}}
{{ using GIT_SSH to set credentials gerrit robot }}
\ {{ > git fetch --tags --progress --prune origin +refs/heads/ * :refs/remotes/origin/ * refs/changes/22/122/2:refs/remotes/origin/22/122/2 # timeout=10}}

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 9:19:03 PM2/4/20
to jenkinsc...@googlegroups.com
honghan wong updated an issue
Jenkins won't build the changeset even it can successfully detect it.

The configuration in Jenkins is as below:

--Within Repository--

{{ Discover open changes }}

--Additional--

Specify ref specs

{{ > +refs/heads/*:refs/remotes/@\{remote}/* }}

{{ > +refs/changes/*:refs/remotes/@\{remote}/* }}

 


{\{I am not sure what breaks the changes }}


{{
The multipipeline branch log is as below: }}

> git rev-parse --is-inside-work-tree # timeout=10
Setting origin to [https://example.com/myrepo]
{{ > git config remote.origin.url [https://example.com/myrepo] # timeout=10 }}
Fetching origin...
Fetching upstream changes from origin
\{{ > git --version # timeout=10 }}
\{{ > git config --get remote.origin.url # timeout=10 }}
using GIT_SSH to set credentials gerrit robot
\{{ > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/ refs/changes/22/122/2:refs/remotes/origin/22/122/2 # timeout=10 }}
\{{ > git rev-parse --is-inside-work-tree # timeout=10 }}
Setting origin to [https://example.com/myrepo]
{{ > git config remote.origin.url [https://example.com/myrepo] # timeout=10 }}
Fetching & pruning origin...
Fetching upstream changes from origin
\{{ > git --version # timeout=10 }}
\{{ > git config --get remote.origin.url # timeout=10 }}
using GIT_SSH to set credentials gerrit robot
\{{ > git fetch --tags --progress --prune origin +refs/heads/:refs/remotes/origin/ refs/changes/22/122/2:refs/remotes/origin/22/122/2 # timeout=10 }}

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 9:20:03 PM2/4/20
to jenkinsc...@googlegroups.com
honghan wong updated an issue
Jenkins won't build the changeset even it can successfully detect it.

The configuration in Jenkins is as below:

\ - \ -Within Repository \ - \ -

Discover open changes

\ - \ -Additional \ - \ -

Specify ref specs

> +refs/heads/
\ *:refs/remotes/@\{remote}/ \ *

> +refs/changes/
\ *:refs/remotes/@\{remote}/ \ *

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 9:22:02 PM2/4/20
to jenkinsc...@googlegroups.com
honghan wong updated an issue
Jenkins won't build the changeset even it can successfully detect it.

The configuration in Jenkins is as below:

\-\-Within Repository\-\-

{{ Discover open changes }}

\-\-Additional\-\-

{{ Specify ref specs }}

{quote}{{ > +refs/heads/\*:refs/remotes/@\{remote}/\*

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 9:23:02 PM2/4/20
to jenkinsc...@googlegroups.com

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 9:25:02 PM2/4/20
to jenkinsc...@googlegroups.com
honghan wong updated an issue
Jenkins won't build the changeset even it can successfully detect it.

The configuration in Jenkins is as below:

\ - \ - \- Within Repository \ - \ - \-

{{Discover open changes}}

\ - \ - \- Additional \ - \ - \-

{{Specify ref specs}}

{{> +refs/heads/
\ *:refs/remotes/@\{remote}/ \ *}}

{{> +refs/changes/
\ *:refs/remotes/@\{remote}/ \ *}}
[ https://example.com/myrepo ] }}
{{> git config remote.origin.url
[ https://example.com/myrepo ] # timeout=10}}
[ https://example.com/myrepo ] }}
{{> git config remote.origin.url
[ https://example.com/myrepo ] # timeout=10}}
[ https://example.com/myrepo ] }}
{{> git config remote.origin.url
[ https://example.com/myrepo ] # timeout=10}}

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 10:21:03 PM2/4/20
to jenkinsc...@googlegroups.com
honghan wong resolved as Fixed
 

I just removed the +refs/changes/*:refs/remotes/@{remote}/* in Specify ref spec and it starts working, its different from this video they demonstrate JenkinsWorld2018

Change By: honghan wong
Status: Open Resolved
Assignee: Luca Domenico Milanesio honghan wong
Resolution: Fixed

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 10:21:03 PM2/4/20
to jenkinsc...@googlegroups.com

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 10:22:03 PM2/4/20
to jenkinsc...@googlegroups.com
honghan wong edited a comment on Bug JENKINS-60965
 
Re: Not able to build changes in multipipeline branch
I just removed the +refs/ changes heads / \ *:refs/remotes/@\{remote}/ \ * in Specify ref spec and it starts working, its different from this video they demonstrate [JenkinsWorld2018|https://www.youtube.com/watch?v=pyPMeCW-Q5k]

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 10:22:03 PM2/4/20
to jenkinsc...@googlegroups.com
honghan wong edited a comment on Bug JENKINS-60965
I just removed the +refs/heads/ \ *:refs/remotes/@\{remote}/ \ * in Specify ref spec and it starts working, its different from this video they demonstrate [JenkinsWorld2018|https://www.youtube.com/watch?v=pyPMeCW-Q5k]

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 10:25:02 PM2/4/20
to jenkinsc...@googlegroups.com
honghan wong edited a comment on Bug JENKINS-60965
I just removed the +refs/heads/ \ *:refs/remotes/@\{remote}/ \ * in Specify ref spec and it starts working, its different from this video they demonstrate

[JenkinsWorld2018|https:// www youtu . youtube.com be / watch?v= pyPMeCW-Q5k ?t=681 ]

So in my scenario the plugin works in this case.

In Specify ref specs, add refs/changes and remove refs/heads, in any other case it won't work.

 

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 4, 2020, 10:26:02 PM2/4/20
to jenkinsc...@googlegroups.com
honghan wong edited a comment on Bug JENKINS-60965
I just removed the +refs/heads/ \ *:refs/remotes/@\{remote}/ \
* in Specify ref spec and it starts working, its different from this video they demonstrate

[JenkinsWorld2018|https://youtu.be/pyPMeCW-Q5k?t=681]


So in my scenario the plugin works in this case.

In Specify ref specs, add refs/changes and remove refs/heads, in any other case it won't work.

 

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 7, 2020, 1:30:03 AM2/7/20
to jenkinsc...@googlegroups.com
honghan wong reopened an issue
 

Following the setting, I found out if we only use refs/changes/*, the master branch is not getting fetch and build.

 

If we use both ref spec (refs/heads/* and refs/changes/*), then only the master branch is getting build, the changes won't build even it got fetched to jenkins.

Change By: honghan wong
Resolution: Fixed
Status: Resolved Reopened
Assignee: honghan wong

honghan.wong@trealtechnology.com (JIRA)

unread,
Feb 7, 2020, 1:31:02 AM2/7/20
to jenkinsc...@googlegroups.com

tiainpa@java.net (JIRA)

unread,
Apr 8, 2020, 6:23:02 AM4/8/20
to jenkinsc...@googlegroups.com
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages