This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I had the need to access the PR title in a build triggered | |
// by a merge of that PR into the targeted repository. In our case, | |
// we use the GitHub hook trigger for GITScm polling setting provided | |
// by the Github plugin. This fires a webhook at your jenkins instance | |
// (must be configured in Github) when changes are pushed into the | |
// target repo. The code below is put into the Groovy script window | |
// provded by the Environment Injector Plugin. | |
// Get the current build environment variables. | |
def thr = Thread.currentThread() |