Re: Groovy build script: What triggered the build

2015-03-11 Thread Sverre Moe
ibute tokens. I think these come from >>>>>> the Environment inject plugin: >>>>>> >>>>>> >>>>>> >>>>>> *Build Causes* >>>>>> >>>>>> This plugin also exposes the cause

Re: Groovy build script: What triggered the build

2015-03-11 Thread Sverre Moe
t; >>>>> >>>>> *Build Causes* >>>>> >>>>> This plugin also exposes the cause of the current build as an >>>>> environment variable. A build can be triggered by multiple causes at the >>>>> same t

Re: Groovy build script: What triggered the build

2015-03-11 Thread Björn Pedersen
cause is exposed as a coma separated list: >>>> >>>> BUILD_CAUSE=USERIDCAUSE, SCMTRIGGER, UPSTREAMTRIGGER >>>> >>>> In addition, each cause is exposed as a single envvariable too: >>>> >>>> BUILD_CAUSE_USERIDCAUSE=true >

Re: Groovy build script: What triggered the build

2015-03-11 Thread Sverre Moe
CAUSE_USERIDCAUSE=true >>> >>> BUILD_CAUSE_SCMTRIGGER=true >>> >>> BUILD_CAUSE_UPSTREAMTRIGGER=true >>> >>> >>> >>> It looks like you can get the user id >>> >>> >>> >>&g

Re: Groovy build script: What triggered the build

2015-02-23 Thread Baptiste Mathus
>> >> BUILD_CAUSE_USERIDCAUSE=true >> >> BUILD_CAUSE_SCMTRIGGER=true >> >> BUILD_CAUSE_UPSTREAMTRIGGER=true >> >> >> >> It looks like you can get the user id >> >> >> >> *From:* jenkins...@googlegroups.com [mailto:jenkins

Re: Groovy build script: What triggered the build

2015-02-23 Thread Sverre Moe
an get the user id > > > > *From:* jenkins...@googlegroups.com [mailto: > jenkins...@googlegroups.com ] *On Behalf Of *Sverre Moe > *Sent:* Thursday, February 19, 2015 6:54 AM > *To:* jenkins...@googlegroups.com > *Subject:* Re: Groovy build script: What triggered the build > >

RE: Groovy build script: What triggered the build

2015-02-19 Thread Ginga, Dick
BUILD_CAUSE_UPSTREAMTRIGGER=true It looks like you can get the user id From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Sverre Moe Sent: Thursday, February 19, 2015 6:54 AM To: jenkinsci-users@googlegroups.com Subject: Re: Groovy build script: What triggered the

Re: Groovy build script: What triggered the build

2015-02-19 Thread Sverre Moe
015 7:06 AM > *To:* jenkins...@googlegroups.com > *Subject:* Groovy build script: What triggered the build > > > > Is it possible to find out who or what triggered the build from a Groovy > script? Either an SCM change, another project or user. I have just begun >

RE: Groovy build script: What triggered the build

2015-02-17 Thread Ginga, Dick
Subject: Groovy build script: What triggered the build Is it possible to find out who or what triggered the build from a Groovy script? Either an SCM change, another project or user. I have just begun reading a little about Groovy and the Jenkins API. I want to check for the following conditions and

Groovy build script: What triggered the build

2015-02-16 Thread Sverre Moe
Is it possible to find out who or what triggered the build from a Groovy script? Either an SCM change, another project or user. I have just begun reading a little about Groovy and the Jenkins API. I want to check for the following conditions and build accordingly. if (trigger == scm) { build_