jenkinsci / ghprb-plugin

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

Add capability to be Integrated with jenkins pipeline #479

Closed alamsz closed 7 years ago

alamsz commented 7 years ago

Since jenkins 2.0 introduction, there is pipeline job style, which using groovy DSL similar to job DSL.

It would be nice if this plugin also be made avaialble to be used in jenkins pipeline job similar to job DSL, since jenkins pipeline offers flexibility in scripting build script

arthurlm44 commented 7 years ago

This would be a great feature. My organization would use it for sure.

benpatterson commented 7 years ago

This work is now being carried out in #497

benpatterson commented 7 years ago

Resolved in #497. Closing this ticket. If there's an issue with the new release (coming out shortly), please log a separate issue. Thank you!

akhfa commented 7 years ago

Is there any documentation how to use this in jenkinsfile?

I can't find this plugin name in my jenkins pipeline syntax. This plugin documentation just cover jenkins configuration instead of pipeline syntax.

roguishmountain commented 7 years ago

@akhfa it's usage is the same as the freestyle project. there's a checkbox in the configuration section of the project.

akhfa commented 7 years ago

@roguishmountain I know that there is checkbox in freestyle project, but there is no any checkbox in Github Organization project (or maybe I can't find it).

Can you upload pics when you configure your github organization project?

roguishmountain commented 7 years ago

@akhfa The GitHub Organization jobs have their own way to build PRs. I have no idea if this is compatible with GitHub Org projects, but it doesn't need to be. If you create a standard pipeline project then you'll see the ghprb.

arcivanov commented 7 years ago

@roguishmountain From everything I've been able to gather all Multibranch Pipeline projects have no support for chat-ops style, command execution and rudimentary policy support on GHPRB.