So this might be useful to push back to the build status to the PR
https://plugins.jenkins.io/pipeline-gitstatuswrapper/
But regarding checking out, I think the standard git checkout would work,
but use the source branch url instead of the pr for that. So, something
like;
```
git branch: XXX
url:
Hi John
Thanks for responding
I am looking for a snippet of Groovy code that can check out a GH PR
source. User will provide repo url, credential, and PR#
-D
On Tuesday, April 26, 2022 at 9:47:47 AM UTC-7 nhoj.p...@gmail.com wrote:
> To be clear, are you wanting;
> 1) github to trigger th
To be clear, are you wanting;
1) github to trigger the job to run for that PR
2) jenkins job to detect PR and run job for that PR
John
On Tue, 26 Apr 2022 at 00:34, Dan Tran wrote:
> Hi
>
> I have been searching for groovy solution to check out a GH PR to my
> Jenkins workspace, so far none o
Hi
I have been searching for groovy solution to check out a GH PR to my
Jenkins workspace, so far none of the suggestions works [1].
Have anyone able to get this scenario it working?
Thanks
-D
[1]
https://stackoverflow.com/questions/49114011/how-to-check-out-a-pull-request-with-jenkins-pi