jenkinsjenkins-pluginsjenkins-workflow

How can I check whether the build is triiggered by timer or by the user?


How can I check whether the build is triiggered by timer or by the user.

I have a build which is scheduled to run and there times I run it manually also. Can I get who started the run from a variable or something in the same run.


Solution

  • We can use "BUILD_CAUSE" variable for getting the information about who initiated the run