Check the BUILD_CAUSE environment variable value from your program.
By default, the values can be:
- MANUALTRIGGER
- SCMTRIGGER
- MANUALTRIGGER
UPSTREAMTRIGGER
Then, plugins (such as XTrigger plugins) can provide additional cause values.
On Fri, Jun 29, 2012 at 10:19 AM, benjamin.a.lau
<[hidden email]> wrote:
Hello,
Is there some way to determine from a shell build step whether the current job was scheduled or started manually (via web interface)? I'm trying to implement a single job but i need slightly different behavior when scheduling the job vs running it directly. If there isn't that's okay i can just create wrapping jobs with the different defaults I need... but i find this solution a bit clunky.
Thanks in advance,
Ben