Jenkins : Pipeline Github Plugin

Plugin Information

View Pipeline: GitHub on the plugin site for more information.

Summary

Programmatic access to Pull Requests from Jenkins Pipelines, in the form of additional global variables. 

Please refer to the GitHub page for requirements, descriptions and usage examples.

https://github.com/jenkinsci/pipeline-github-plugin