[JIRA] (JENKINS-59008) Merge before build, reference is not a tree on second build

24 views
Skip to first unread message

petekol@mail.ru (JIRA)

unread,
Aug 20, 2019, 7:06:03 AM8/20/19
to jenkinsc...@googlegroups.com
P K created an issue
 
Jenkins / Bug JENKINS-59008
Merge before build, reference is not a tree on second build
Issue Type: Bug Bug
Assignee: Mark Waite
Attachments: first-good.txt, second-bad.txt
Components: git-plugin
Created: 2019-08-20 11:05
Environment: 2.176.2
git-plugin 2.8.0
Priority: Major Major
Reporter: P K

Pipeline Jenkins build with

SCM: GIT

Branches to build: refs/tags/*_${RELEASE}_feature

Additional Behaviours: Merge before build

 

first polled build is ok (change is detected and merged), see log

second build triggered by hand gets error (no change), see log

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mark.earl.waite@gmail.com (JIRA)

unread,
Aug 20, 2019, 8:31:02 AM8/20/19
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-59008
 
Re: Merge before build, reference is not a tree on second build

Is SHA-1 a487d775943bc781fc0425601a15cb7445c67c6a a valid SHA-1 in any of the repositories involved in the (failing) second job? For example, are you using a pipeline shared library and is that SHA-1 one of the commits in the pipeline shared library?

mark.earl.waite@gmail.com (JIRA)

unread,
Aug 20, 2019, 8:33:02 AM8/20/19
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-59008
Is SHA-1 a487d775943bc781fc0425601a15cb7445c67c6a a valid SHA-1 in any of the repositories involved in the (failing) second job?  For example, are you using a pipeline shared library and is that SHA-1 one of the commits in the pipeline shared library?

Was able to answer my own question. That must be a valid SHA-1 in the repository since the first build succeeds using the same SHA-1

mark.earl.waite@gmail.com (JIRA)

unread,
Aug 20, 2019, 11:42:02 PM8/20/19
to jenkinsc...@googlegroups.com

I don't know how to duplicate the conditions you're seeing. Refer to the JENKINS-51638 verification job and its contributor branch in the JENKINS-51638-project-1 branch for an example of what I've attempted.

Does the "branches to build" need to be a tag? Does it behave differently if you use a branch instead of a tag? My test case did not attempt to use a tag, just two branches.

mark.earl.waite@gmail.com (JIRA)

unread,
Aug 20, 2019, 11:42:02 PM8/20/19
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
 
Change By: Mark Waite
Assignee: Mark Waite

petekol@mail.ru (JIRA)

unread,
Aug 21, 2019, 4:37:02 AM8/21/19
to jenkinsc...@googlegroups.com
P K commented on Bug JENKINS-59008
 
Re: Merge before build, reference is not a tree on second build

it should be a tag for my project and i can reproduce the error. i'll try branch later on.

mark.earl.waite@gmail.com (JIRA)

unread,
Aug 21, 2019, 7:10:02 AM8/21/19
to jenkinsc...@googlegroups.com

Can you provide the config.xml of the job? The failure mode is surprising, though it may be similar to a recent report related to tags and merges.

petekol@mail.ru (JIRA)

unread,
Aug 21, 2019, 10:24:01 AM8/21/19
to jenkinsc...@googlegroups.com
P K updated an issue
 
Change By: P K
Attachment: config.xml

petekol@mail.ru (JIRA)

unread,
Aug 21, 2019, 10:25:02 AM8/21/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Aug 22, 2019, 12:56:01 PM8/22/19
to jenkinsc...@googlegroups.com

petekol@mail.ru (JIRA)

unread,
Aug 23, 2019, 10:04:03 AM8/23/19
to jenkinsc...@googlegroups.com
P K updated an issue
Change By: P K
Summary: Merge before build, reference is not a tree on second build if merge target is a tag

mark.earl.waite@gmail.com (JIRA)

unread,
Aug 23, 2019, 10:31:02 AM8/23/19
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-59008
 
Re: Merge before build, reference is not a tree on second build

Sorry, I don't know what's different between your failing cases and my working cases. I've completed my investigation and placed my results into publicly accessible locations. I'll rely on you to compare my working cases and your failing cases.

petekol@mail.ru (JIRA)

unread,
Aug 23, 2019, 10:36:02 AM8/23/19
to jenkinsc...@googlegroups.com
P K commented on Bug JENKINS-59008

please add push at the end of your Jenkinsfile

without push it works and has always somthing to merge!!!

petekol@mail.ru (JIRA)

unread,
Sep 27, 2019, 3:30:01 AM9/27/19
to jenkinsc...@googlegroups.com
P K commented on Bug JENKINS-59008

any progress on this?????

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

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 27, 2019, 8:43:01 AM9/27/19
to jenkinsc...@googlegroups.com

petekol@mail.ru (JIRA)

unread,
Oct 8, 2019, 6:35:04 AM10/8/19
to jenkinsc...@googlegroups.com
P K commented on Bug JENKINS-59008

great! see my last comment and retest with push

Reply all
Reply to author
Forward
0 new messages