Page MenuHomePhabricator

Pipeline lib leaves workspace behind on the Jenkins agents
Open, Needs TriagePublic

Description

We had integration-agent-docker-1028 running out of disk space on /srv this morning and while investigating I have noticed a few build workspaces have been left behind. They look like:

/srv/jenkins/workspace/workspace
2155	./miscweb-pipeline-test
433	./datahub-pipeline-gms-build
432	./datahub-pipeline-datahub-gms
16	./service-pipeline-test

PipelineLib should nuke the workspace at the end of the build. That can be done with the Workspace Cleanup plugin

Event Timeline

dancy renamed this task from Pipeline lib leaves workspace being on the Jenkins agents to Pipeline lib leaves workspace behind on the Jenkins agents.Feb 28 2022, 4:00 PM

Mentioned in SAL (#wikimedia-releng) [2022-03-29T12:32:04Z] <hashar> integration-agent-docker-1039: clearing leftover pipelinelib builds: sudo rm -fR /srv/jenkins/workspace/workspace/* T304932 T302477