ibute tokens. I think these come from
>>>>>> the Environment inject plugin:
>>>>>>
>>>>>>
>>>>>>
>>>>>> *Build Causes*
>>>>>>
>>>>>> This plugin also exposes the cause
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
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
>
CAUSE_USERIDCAUSE=true
>>>
>>> BUILD_CAUSE_SCMTRIGGER=true
>>>
>>> BUILD_CAUSE_UPSTREAMTRIGGER=true
>>>
>>>
>>>
>>> It looks like you can get the user id
>>>
>>>
>>>
>>&g
>>
>> 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
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
>
>
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
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
>
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
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_
10 matches
Mail list logo