Environment variable for agent

39 views
Skip to first unread message

Salomé L.

unread,
Jul 21, 2016, 5:45:23 AM7/21/16
to go-cd
Hi
I have a job which will run on all agents and will log to a file specified in the arguments of a custom command. The problem is the concurrent access of the different agents to the log file, which causes errors.
Is there an environment variable that I could use to specify which agent must log to which file ?Something like : logFileName_%GO_AGENT_NUMBER% 
Thank you for your answer !
Salomé

David Rice

unread,
Jul 21, 2016, 6:29:49 AM7/21/16
to go-cd
Hi -


Will GO_JOB_RUN_INDEX and GO_JOB_RUN_COUNT work for you?


--
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 go-cd+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Salomé L.

unread,
Jul 22, 2016, 9:29:25 AM7/22/16
to go-cd
Yes ! Thank you for your answer 

Salomé L.

unread,
Jul 22, 2016, 9:54:34 AM7/22/16
to go-cd
Actually, after trying to use them, I think these variables are only meant to be used with TLB. They don't seem to exist otherwise.
Reply all
Reply to author
Forward
0 new messages