Re: How to distinguish which build trigger to kick off the build

2016-04-20 Thread Olli Sivonen
Hi, Jenkins generates environment variable BUILD_CAUSE for each build that contains the information you seek. The values are something like 'UPSTREAMTRIGGER', 'SCMTRIGGER', 'TIMERTRIGGER', and so forth. Also, if you have Conditional BuildStep Plugin

Re: How to distinguish which build trigger to kick off the build

2016-04-20 Thread Baptiste Mathus
Hi, IIUC what you're talking about us actually called a "Cause" in Jenkins. Seems like https://wiki.jenkins-ci.org/display/JENKINS/Build+Cause+Run+Condition was designed to do what you want, but that plugin seems abandoned and is said to only implement the user cause. -- Baptiste Le 18 avr. 2016 3