Hi -

Check out the docs at
https://docs.go.cd/current/advanced_usage/admin_spawn_multiple_jobs.html
<https://docs.go.cd/16.3.0/advanced_usage/admin_spawn_multiple_jobs.html>

Will GO_JOB_RUN_INDEX and GO_JOB_RUN_COUNT work for you?


On Thu, Jul 21, 2016 at 3:15 PM Salomé L. <[email protected]> wrote:

> 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é
>
> --
> 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