[JIRA] (JENKINS-61120) SCM Checkout stage branches how to match remote pull request head with local build head

13 views
Skip to first unread message

amila.kdam@gmail.com (JIRA)

unread,
Feb 18, 2020, 4:48:02 AM2/18/20
to jenkinsc...@googlegroups.com
Amila Gunathilake created an issue
 
Jenkins / Bug JENKINS-61120
SCM Checkout stage branches how to match remote pull request head with local build head
Issue Type: Bug Bug
Assignee: Mark Waite
Attachments: image-2020-02-18-04-21-49-733.png, image-2020-02-18-04-44-45-417.png, image-2020-02-18-04-46-58-927.png
Components: git-plugin, github-branch-source-plugin, github-plugin
Created: 2020-02-18 09:47
Priority: Major Major
Reporter: Amila Gunathilake

Hi all,

I'm having the below issue.

I was change my code to use GIT Reference repository in Jenkinsfile code such as below.

But so I send made a new pull request in GIT-HUB for the purpose of merge these changes into my master branch.

But when the Pull-Request running I saw in my builder machine (workspace) its not downloading (fetching) the relevant Remote Pull-Request Head/Branch/ because in my workspace (builder-machine) local branch always checkout with the master branch and fetching from the master branch and not checkout for the correct Pull Request Head. 

 

eg: Above screenshot is the way that my local workspace's .git > HEAD file looks like in the Pull Request I created after above code changes. And as you can see in the HEAD file it's automatically checkout in to the master branch instead of checking out into the relevant Pull-Request hash (tag). 

But below is the correct screenshot I captured from any other Pull Requests which should be the correct way to show.

 

I hope you will understand my situation here? Please let me know if you guys need further information.

I throughly suggest that I want some code to replace above Yellow color highlighted sections. 
So please could anyone please give some advice regarding this issue ?  

 

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

amila.kdam@gmail.com (JIRA)

unread,
Feb 18, 2020, 4:49:04 AM2/18/20
to jenkinsc...@googlegroups.com
Amila Gunathilake updated an issue
Change By: Amila Gunathilake
Hi all,

I'm having the below issue.

I was change my code to use GIT Reference repository in Jenkinsfile code such as below.
!image-2020-02-18-04-21-49-733.png!



But so I send made a new pull request in GIT-HUB for the purpose of merge these changes into my master branch.

{color:# FF0000 ff0000 }But when the Pull-Request running I saw in my builder machine (workspace) its not downloading (fetching) the relevant Remote Pull-Request Head/Branch/ because in my workspace (builder-machine) local branch always checkout with the master branch and fetching from the master branch and not checkout for the correct Pull Request Head. {color}

 

{color:#
FF0000 ff0000 }!image-2020-02-18-04-44-45-417.png!{color}

{color:#
FF0000 ff0000 }eg: {color:#172b4d} Above screenshot is the way that{color} {color}{color:#172b4d}   m{color}y my local workspace's .git > HEAD file looks like in the Pull Request I created after above code changes. And as you can see in the HEAD file it's automatically checkout in to the master branch instead of checking out into the relevant Pull-Request hash (tag). 


*
But below is the correct screenshot I captured from any other Pull Requests which should be the correct way to show.

!image-2020-02-18-04-46-58-927.png!

 

{color:#
FF0000 ff0000 } {color:#172b4d} I hope you will understand my situation here? Please let me know if you guys need further information.


*I throughly suggest that I want some code to replace above Yellow color highlighted sections.* 

{color} {color} So please could anyone please give some advice regarding this issue ?  




 

amila.kdam@gmail.com (JIRA)

unread,
Feb 18, 2020, 4:49:04 AM2/18/20
to jenkinsc...@googlegroups.com
Amila Gunathilake updated an issue
Hi all,

I'm having the below issue.

I was change my code to use GIT Reference repository in Jenkinsfile code such as below.
!image-2020-02-18-04-21-49-733.png!

But so I send made a new pull request in GIT-HUB for the purpose of merge these changes into my master branch.

{color:#ff0000}But when the Pull-Request running I saw in my builder machine (workspace) its not downloading (fetching) the relevant Remote Pull-Request Head/Branch/ because in my workspace (builder-machine) local branch always checkout with the master branch and fetching from the master branch and not checkout for the correct Pull Request Head. {color}

 

{color:#ff0000}!image-2020-02-18-04-44-45-417.png!{color}

{color:#ff0000}eg: Above screenshot is the way that{color} my local workspace's .git > HEAD file looks like in the Pull Request I created after above code changes. And as you can see in the HEAD file it's automatically checkout in to the master branch instead of checking out into the relevant Pull-Request hash (tag). 


* But below is the correct screenshot I captured from any of other Pull Requests , which should be the correct way to show the checkout branch or the HEAD .

!image-2020-02-18-04-46-58-927.png!

 

{color:#ff0000}I hope you will understand my situation here? Please let me know if you guys need further information.


*I throughly suggest that I want some code to replace above Yellow color highlighted sections.* 
{color}So please could anyone please give some advice regarding this issue ?  

 

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

unread,
Feb 18, 2020, 12:36:03 PM2/18/20
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Not A Defect
 

The Jenkins issue tracker is not a support site or a question and answer site.

The chat systems and mailing lists are much better suited to assist users with questions and answers.

Change By: Mark Waite
Status: Open Closed
Resolution: Not A Defect

amila.kdam@gmail.com (JIRA)

unread,
Feb 18, 2020, 7:08:03 PM2/18/20
to jenkinsc...@googlegroups.com

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

unread,
Feb 18, 2020, 8:05:03 PM2/18/20
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Not A Defect
Change By: Mark Waite
Status: Reopened Closed
Resolution: Not A Defect

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

unread,
Feb 18, 2020, 8:05:03 PM2/18/20
to jenkinsc...@googlegroups.com

amila.kdam@gmail.com (JIRA)

unread,
Feb 18, 2020, 8:19:05 PM2/18/20
to jenkinsc...@googlegroups.com
Amila Gunathilake commented on Bug JENKINS-61120
 
Re: SCM Checkout stage branches how to match remote pull request head with local build head

Mr. Mark Waite this is for your information (FYI)  -  I have created an issue ticket in the Mailing list.  So could you please reply to this via email ?  https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/jenkinsci-users/1h5mcbaYUQ8

Thanks. Expecting your reply,
Amila Khan

Jenkins Customer Base
India

 

Reply all
Reply to author
Forward
0 new messages