[JIRA] (JENKINS-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title Joe Pea commented on JENKINS-41104 Re: Cannot get source branch in PR build in Bitbucket team project Figured it out. I set the `Discover branches Strategy` to `only branches that are filed as PRs`, and removed the `discover pull requests` options. Now it builds straight from my pull request branches, exactly like I wanted. 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title Joe Pea commented on JENKINS-41104 Re: Cannot get source branch in PR build in Bitbucket team project Hello, how can we use the original branch for pull request builds, instead of the PR-XXX branches? 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title Mike Kobit updated an issue Jenkins / JENKINS-41104 Cannot get source branch in PR build in Bitbucket team project Change By: Mike Kobit Component/s: branch-api-plugin Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title Gregory Kman edited a comment on JENKINS-41104 Re: Cannot get source branch in PR build in Bitbucket team project I don't know that I would consider this a feature request. This seems more like a bug to me. The I would imagine that the 'BRANCH_NAME=PR-4' should actually be what the source branch is in Git. 'BRANCH_NAME' is equivalent to 'SOURCE_NAME' and 'CHANGE_TARGET' to be equivalent to `TARGET_NAME`Am I mistaken? And if so could someone explain what 'BRANCH_NAME' and 'CHANGE_TARGET' are supposed to mean? Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title Gregory Kman edited a comment on JENKINS-41104 Re: Cannot get source branch in PR build in Bitbucket team project I don't know that I would consider this a feature request. This seems more like a bug to me. The would imagine that the 'BRANCH_NAME=PR-4' should actually be what the source branch is in Git. 'BRANCH_NAME' is equivalent to 'SOURCE_NAME' and 'CHANGE_TARGET' to be equivalent to `TARGET_NAME`Am I mistaken? And if so could someone explain what 'BRANCH_NAME' and 'CHANGE_TARGET' are supposed to mean? Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title Gregory Kman commented on JENKINS-41104 Re: Cannot get source branch in PR build in Bitbucket team project I don't know that I would consider this a feature request. This seems more like a bug to me. The would imagine that the `BRANCH_NAME=PR-4` should actually be what the source branch is in Git. `BRANCH_NAME` is equivalent to `SOURCE_NAME` and `CHANGE_TARGET` to be equivalent to `TARGET_NAME` Am I mistaken? And if so could someone explain what `BRANCH_NAME` and `CHANGE_TARGET` are supposed to mean? Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title Gregory Kman edited a comment on JENKINS-41104 Re: Cannot get source branch in PR build in Bitbucket team project I don't know that I would consider this a feature request. This seems more like a bug to me. The would imagine that the ` ' BRANCH_NAME=PR-4 ` ' should actually be what the source branch is in Git. ` ' BRANCH_NAME ` ' is equivalent to ` ' SOURCE_NAME ` ' and ` ' CHANGE_TARGET ` ' to be equivalent to `TARGET_NAME`Am I mistaken? And if so could someone explain what ` ' BRANCH_NAME ` ' and ` ' CHANGE_TARGET ` ' are supposed to mean? Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title recampbell commented on JENKINS-41104 Re: Cannot get source branch in PR build in Bitbucket team project This seems like a feature request to me, marking as such. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title recampbell updated an issue Jenkins / JENKINS-41104 Cannot get source branch in PR build in Bitbucket team project Change By: recampbell Issue Type: Bug New Feature Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title Mike Kobit commented on JENKINS-41104 Re: Cannot get source branch in PR build in Bitbucket team project Michael Neale is this more of a Branch API issue or is it specific to the Bitbucket Branch Source plugin? Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title Mike Kobit commented on JENKINS-41104 Re: Cannot get source branch in PR build in Bitbucket team project Michael Neale this happened with the older (as of whatever the latest version was) yesterday. I tested this today with a simple sh 'env' step after updating all of our plugins to the 2.0 line (based on this blog post) and now we see something like: # ... some other env variables CHANGE_URL=https://git.corp.com/projects/proj/repos/repository/pull-requests/4/overview CHANGE_ID=4 BRANCH_NAME=PR-4 CHANGE_TITLE=This is the commit message in the PR CHANGE_TARGET=master I don't believe that CHANGE_TARGET was available before the plugin updates but I could be wrong. I don't see anything regarding the source branch in the PR available as an environment variable (may be separate from this issue). Note that this is with Bitbucket Server 4.11 (not Bitbucket Cloud). Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title Michael Neale commented on JENKINS-41104 Re: Cannot get source branch in PR build in Bitbucket team project Hi Mike Kobit what version of the branch-api-plugin do you have installed? Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title Mike Kobit commented on JENKINS-41104 Re: Cannot get source branch in PR build in Bitbucket team project It looks like the env.BRANCH_NAME is not the origin branch in pull requests, it is the PR number. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-41104) Cannot get source branch in PR build in Bitbucket team project
Title: Message Title Paweł Kozikowski created an issue Jenkins / JENKINS-41104 Cannot get source branch in PR build in Bitbucket team project Issue Type: Bug Assignee: Antonio Muñiz Components: bitbucket-branch-source-plugin Created: 2017/Jan/16 3:08 PM Priority: Major Reporter: Paweł Kozikowski I need to get JIRA issue key from the name of the branch, but from the PR build I cannot obtain in. Source branch name is not listed in the 'env' list. It would be useful if we could somehow obtain the source branch name from the PR build Add Comment