[JIRA] (JENKINS-52668) Bitbucket branch source plugin fails to checkout pull requests

2018-11-19 Thread vivek.pan...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Vivek Pandey updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-52668  
 
 
  Bitbucket branch source plugin fails to checkout pull requests   
 

  
 
 
 
 

 
Change By: 
 Vivek Pandey  
 
 
Labels: 
 bitbucket-branch-source-plugin  triaged-2018-11  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-52668) Bitbucket branch source plugin fails to checkout pull requests

2018-08-03 Thread lukas.beer...@daimler.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Lukas Beerens commented on  JENKINS-52668  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Bitbucket branch source plugin fails to checkout pull requests   
 

  
 
 
 
 

 
 Just increased the priority. Will check your workaround when I am back at work to see if this works.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-52668) Bitbucket branch source plugin fails to checkout pull requests

2018-08-03 Thread lukas.beer...@daimler.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Lukas Beerens updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-52668  
 
 
  Bitbucket branch source plugin fails to checkout pull requests   
 

  
 
 
 
 

 
Change By: 
 Lukas Beerens  
 
 
Priority: 
 Minor Critical  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-52668) Bitbucket branch source plugin fails to checkout pull requests

2018-08-03 Thread joerg.schwaerz...@infineon.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Joerg Schwaerzler commented on  JENKINS-52668  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Bitbucket branch source plugin fails to checkout pull requests   
 

  
 
 
 
 

 
 Workaround which is currently working for me: 
 
Extend the ref spec for the repository to clone by 

 

+refs/pull-requests/*:refs/remotes/@{remote}/pull-requests/* 

 
 
 
Add some lines of code to choose the correct reference in case the build is originated by a pull request, i.e. for loading a shared library this would be something like: 

 

if (env.CHANGE_ID != null) {
cpsLibBranch = "refs/remotes/origin/pull-requests/${env.CHANGE_ID}/merge"
} else {
cpsLibBranch = env.BRANCH_NAME
}
cpsLibId = "cpsLib@${cpsLibBranch}"
cpsLib = library(cpsLibId)
 

 
  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For 

[JIRA] (JENKINS-52668) Bitbucket branch source plugin fails to checkout pull requests

2018-08-03 Thread joerg.schwaerz...@infineon.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Joerg Schwaerzler commented on  JENKINS-52668  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Bitbucket branch source plugin fails to checkout pull requests   
 

  
 
 
 
 

 
 Same issue here. PR's cannot be built for us (plugin version 2.11) as the BRANCH_NAME 'PR-1' cannot be found. To me this doesn't sound like a minor issue - at least it would be a Major one. Would you mind increasing the priority?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.