Any way to clean up pipelines directory on agent machine?

718 views
Skip to first unread message

Carl Reid

unread,
Oct 2, 2014, 12:15:35 PM10/2/14
to go...@googlegroups.com
We have a lot of pipelines and some agents are configured to run a many of the jobs within the pipelines. The result of this is there may be hundreds of pipeline job execution folders on each agent machine.

One problem we are seeing is that some of the pipeline jobs use lots of disk space and there does not seem to be a way of cleaning them up.
I am aware of the "Clean working directory" checkbox however as I understand it, that cleans the working directory before the job runs.

What I really need is something to clean the working directory after the job has completed to reduce the impact on the disk space being used.

Does such a thing exist in GO or do I have to write some custom scripts to do this?

Thanks

Carl

srinivas upadhya

unread,
Oct 3, 2014, 12:45:41 AM10/3/14
to go...@googlegroups.com
This does not exist. But a really neat feature in my opinion. The least Go can do is delete pipelines that do not exist in Config anymore.
You might want to propose a feature on go-cd-dev and get some help to get it done!
Reply all
Reply to author
Forward
0 new messages