Re: [go-cd] Remove pipeline directory on agent after completion

2021-03-06 Thread Jason Smyth
Hi Joel, Like Ashwanth, we also use a custom script to clean up Pipeline working directories. We run ours as a Windows Scheduled Task and leave the 5 most recent working directories. This creates an opportunity for race conditions, though, if the Agent happens to pick up a Job for a Pipeline w

Re: [go-cd] Remove pipeline directory on agent after completion

2021-03-05 Thread 'Ashwanth Kumar' via go-cd
AFAIK there isn't any feature so far in GoCD. We currently use custom script to delete all the other pipelines on an Agent by running a cleanup pipeline periodically. Since each agent is exclusive to a pipeline run, you can safely delete all the other pipelines in the working directory via the clea

[go-cd] Remove pipeline directory on agent after completion

2021-03-05 Thread Joel Bodenmann
Is there (by now) a feature available that allows to configure either on a per-agent or a per-pipeline level the behavior that a pipeline directory is automatically removed from the agent after finishting the pipeline job (in all cases, not just on success)? I believe that this older thread is