Is it possible to access information about committers and / or perpetrators of a Jenkins workflow job when checking one or more SCMs (either using checkout () or other SCM steps such as git / svn)?
The goal is to use this information to notify committers and / or perpetrators of job status, for example, in the mail step.
A small example of a workflow definition:
node { // checkout from one or more SCMs, eg git url: '<URL>' checkout([$class:...]) ... // how can we know about committers or culprits at this point? $committers = ?? // send a mail to committers or culprits mail to: '$committers', subject: 'JENKINS', body: '<information about the job status>' }
How can this be adapted to produce a collection of committers after running SCM steps?
Edit: I am currently working with Jenkins version 1.596.2 and Workflow: Aggregator version 1.6, and it seems to be an open issue in JENKINS-24141
source share