Sorry, ignore my response. Sending an environment from an agent to a
pipeline is not possible, by design.

On Thu, Nov 23, 2017 at 4:29 PM Ketan Padegaonkar <
[email protected]> wrote:

> You'd add these environment variables to `/etc/default/go-agent` and
> restart your instance.
>
>
> On Thu, Nov 23, 2017 at 4:28 PM Mukesh Murali <[email protected]>
> wrote:
>
>> Much appreciate the response, however GoCD environment variables are not
>> what i can use in my scenario. The use case is to make this work other way
>> around. To make a environment variable in an agent available to the
>> pipeline that runs on that agent. Any pointers will help. Thanks.
>>
>>
>> On Wednesday, 22 November 2017 16:10:08 UTC, Ken Mugrage wrote:
>>
>>>
>>> Hello, looks like
>>> https://docs.gocd.org/current/faq/environment_variables.html should be
>>> helpful.
>>>
>>> Regards
>>>
>> On Wed, Nov 22, 2017 at 5:00 AM, Mukesh Murali <[email protected]>
>>> wrote:
>>>
>> I have a need to be able to update a environment variable from the linux
>>>> gocd agents . This environment variable should be accessible from within
>>>> any pipeline that runs on the agent. Documentation i have read so far talks
>>>> about using the environment variables created in the gocd environment.
>>>> However this is not my requirement.
>>>>
>>>>
>>>> I have tried the following steps so far:
>>>>
>>>>
>>>>
>>>>    1. Logged into the agent as go user and set an environment variable
>>>>    ( export VARA=XXX)  ;
>>>>    2. Tried to echo this variable from a pipeline in gocd that prints
>>>>    this variable, in vain.
>>>>    3. Also tried specifying the variable in bash_profile, bashrc and
>>>>    executed the source command in the same gocd task that echoes the 
>>>> variable
>>>>
>>>> For some reason, gocd pipeline doesnt seem to see this variable. Please
>>>> let me know if you have any pointers.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "go-cd" group.
>>>>
>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>
>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>>> Ken Mugrage - [email protected]@kmugrage
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "go-cd" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to