Manual Pipeline trigger doesn't have Pull Requests built-in variables

XMLWordPrintable

    • 2

      Issue Summary

      A manually triggered Pipeline on a Pull request won't have variables related to Pull Requests (such as the PR destination BITBUCKET_PR_DESTINATION_BRANCH), as these are only populated when the pipeline is triggered automatically off of a branch update.

      Steps to Reproduce

      1. Manually trigger a Pipeline on a Pull request and have an echo $BITBUCKET_PR_DESTINATION_BRANCH command in the build
      2. Observe the value of BITBUCKET_PR_DESTINATION_BRANCH variable printed in the build

      Expected Results

      BITBUCKET_PR_DESTINATION_BRANCH variable should print the Pull request destination branch name

      Actual Results

      BITBUCKET_PR_DESTINATION_BRANCH variable should print the Pull request destination branch name

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

              Assignee:
              Unassigned
              Reporter:
              Sandeep K
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: