Re: checkout a GitHub PR banch on normal pipeline

2022-04-27 Thread John Patrick
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:

Re: checkout a GitHub PR banch on normal pipeline

2022-04-27 Thread Dan Tran
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

Re: checkout a GitHub PR banch on normal pipeline

2022-04-26 Thread John Patrick
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

checkout a GitHub PR banch on normal pipeline

2022-04-25 Thread Dan Tran
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