Unable to successfully build from a pr with a forked branch. #233
Unanswered
sdaconceicao
asked this question in
Q&A
Replies: 3 comments
-
Actually I’m also looking for some feature or workaround which supports forked repos. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same issue here. Any updates how to solve this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to setup this plugin to work in an environment where all prs come from forked branches. Out of the box I'm only able to get this to work if the branch is part of the main git repo where webhooks have been setup. If I open a pr now with a forked branch, the webhook correctly is received, but the actual build fails as it says the checkout has failed, since it appears to be trying to checkout the changes from the main repo which doesn't have the new commmits.
Is there a configuration step I'm missing for this to work, possibly with the Git Jenkins plugin? I tried a few things, like updating the Branch to build to ${BITBUCKET_SOURCE_BRANCH} but that hasn't helped.
Steps to reproduce
Expected Behavior
PR Builder triggers, checks out the forked code, and runs
Current Behavior
PR Builder triggers, but fails to checkout the forked code.
using GIT_SSH to set credentials
stderr: fatal: ambiguous argument '39879661a001cc82e5a01d07a67fb12d0f8c2a5d^{commit}': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
The same steps above will work if the pr originates from the original repo. It's only when it originates from a fork that it fails.
Beta Was this translation helpful? Give feedback.
All reactions