-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Bitbucket Server Integration version 4.0.0
Jenkins version 2.452
Builds do not work on pull requests for multibranch pipeline builds.
Job configuration related to the Bitbucket Server Integration plugin:
SSH clone
Discovering both branches and pull requests
Shallow clone
Bitbucket webhook trigger (all pushes and pull request opened or source branch updated)
The build is triggered for the PR, but fails to complete.
Relevant logs:
> git fetch --no-tags --force --progress --prune --depth=2 -- ssh://git@<BITBUCKET_REPO> +refs/heads/*:refs/remotes/origin/* +refs/pull-requests/626/from:refs/remotes/origin/PR-626 # timeout=10 > git rev-parse origin/PR-626^{commit} # timeout=10 > git rev-parse origin/master^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f origin/master # timeout=10 ERROR: Checkout failed hudson.plugins.git.GitException: Command "git checkout -b ** origin/master" returned status code 128: stdout: stderr: fatal: '**' is not a valid branch name ...... ...... ...... Caused: hudson.plugins.git.GitException: Could not checkout ** with start point origin/master ...... ...... ...... ERROR: java.io.IOException: hudson.plugins.git.GitException: Could not checkout ** with start point origin/master
Builds work on branches just fine, but not on PRs.