jenkinsci / ghprb-plugin

github pull requests builder plugin for Jenkins
https://plugins.jenkins.io/ghprb/
MIT License
507 stars 612 forks source link

Declarative Jenkinsfile Support #528

Open karlkfi opened 7 years ago

karlkfi commented 7 years ago

How do I configure ghprb-plugin when writing a jenkinsfile pipeline using the new declarative pipeline DSL?

rdeusser commented 7 years ago

Any luck with this?

jstallm commented 7 years ago

For some reason there is no example online of anyone using pull requests in blue ocean using declarative pipeline syntax. Is that page even used? "You don't have any open pull requests" is all I see as well

jhg03a commented 6 years ago

You may want to look at #617, I found a partial solution depending on what you're looking for.

jonlil commented 6 years ago

@jstallm - I just found out that you need to configure github-branch-source plugin to discover pull-requests, in the Gitub Organization section. Remember to create the webhooks :-)

jcrben commented 6 years ago

I'm not sure exactly what you want, but the basic instructions at https://stackoverflow.com/a/45121585/4200039 (which I figured out mostly on my own, the hard way) worked for me.