Jenkins plugin to expose a JENKINS_STARTED_BY environment variable.
Java
Pull request Compare This branch is 1 commit ahead of huybrechts:master.