Thanks. Aravind.
So I will have to call the script that sets the Environment variables in 
each task I need to run.
For instance I would have to call something like: 
Task 1 SetEnv.cmd && gradle assemble  
Task 2 SetEnv.cmd && <some other command>
etc...

On Thursday, 9 November 2017 09:39:30 UTC+11, Aravind SV wrote:
>
> Hey Sebastian,
>
> Though GoCD doesn't expand it - by itself, you should be able to use 
> %ROOT_VAR% in an exec task. The command executor or shell will be the one 
> that does the expansion.
>
> Cheers,
> Aravind
>
>
> On Wed, Nov 8, 2017 at 1:23 AM, Sebastian Stepien <[email protected] 
> <javascript:>> wrote:
>
>> Coming from Jenkins. 
>> Is it possible to expand the environment variables before running a 
>> job/task? 
>> eg. 
>> ROOT_VAR = c:\baseDir\
>> ANOTHER_VAR = %ROOT_VAR%\temp
>>
>> -- 
>> 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] <javascript:>.
>> 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