-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't get the plugin working with pipeline #205
Comments
@CodeMonk What version of the plugin are you using? I'm on However, the Possibly related to #130 ? |
After looking a bit more, it seems the So it seems that the |
Finally figured this out! I had to add the trigger via the Jenkins UI, then configure the job to checkout the pipeline from SCM via the UI, then add a checkout stage inside the pipeline to specify what to checkout which looks like this. Note, the types of quotation marks you use is important:
The refspec pulls in the pr branches. This is important if your PRs are across forks! |
Awesome - great find!
But, is there a way we could make things easier from the plugin side? Is
there a way to give Jenkins enough information to have `checkout scm`
simply work?
…-Dave
On Tue, Aug 27, 2019 at 7:42 AM ejrgilbert ***@***.***> wrote:
Finally figured this out! I had to add the trigger via the Jenkins UI,
then configure the job to checkout the pipeline from SCM via the UI, then
add a checkout stage inside the pipeline to specify what to checkout which
looks like this. Note, the types of quotation marks you use is important:
checkout([
$class: 'GitSCM',
branches: [[name: "*/${env.sourceBranch}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [
[
$class: 'PreBuildMerge'],
options: [mergeRemote: 'origin', mergeTarget: "${env.targetBranch}"]
],
submoduleCfg: [],
userRemoteConfigs: [[
credentialsId: 'place-cred-id-here',
refspec: '+refs/pull-requests/*: refs/remotes/origin/pr/*',
url: ***@***.***:7999/${env.destinationRepositoryOwner}/${env.destinationRepositoryName}.git"
]]
])
The refspec pulls in the pr branches. This is important if your PRs are
across forks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#205?email_source=notifications&email_token=AAA72VQBCB4OEII3SW6WRSLQGUVKZA5CNFSM4IDAERX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5HYY3Y#issuecomment-525306991>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAA72VUQPKBSP4XWLRFAUK3QGUVKZANCNFSM4IDAERXQ>
.
|
This seems related to an issue I posted today: #215 Any other way to get this to work then the above mentioned work around? |
That merge squash was fixed several weeks ago. Are you still having issues? |
I seem to have the same issue. Any idea?
|
I have the same problem. How should I set up the followings?
|
There used to be issues with |
Keep in mind, you CANNOT click the rebuild button on a PR build. The branch information will not be present. You have to either push a new commit, rebase a new commit, or comment on the PR with the trigger phrase |
Hi,
for some reason, I couldn't get the pipeline working with bitbucketpr, here's my pipeline
Although it seems to work for me when I did it through freestyle jobs, is there any recommendation?
Also, how can I debug this on my jenkins?
one way I could see is to checkout this project, build it and upload the hci manually to my jenkins and test it out, is there any gotchas I need to watch out for?
The text was updated successfully, but these errors were encountered: