Thanks,
however this script doesn't consider multibranch pipeline workspaces
(not in the same folder structure).
In order to also look fo builds (ie. for more agressive archive
cleanup) and also consider multibranch pipelines you can modify it like
this:
du -shc /jobs/genie.YOURPROJECT/*/workspace*/*
/jobs/genie.YOURPROJECT/*/builds
/jobs/genie.YOURPROJECT/*/branches/*/workspace*/*
/jobs/genie.YOURPROJECT/*/branches/*/builds | egrep -v
"(8.0K|4.0K|0)[[:space:]]" > du.list.txt
Le 01/03/2018 à 23:43, Nick Boldt a écrit :
After purging old builds and workspaces, setting more aggressive
archive cleanup rules on CI jobs, and deleting a few ancient jobs
entirely, I've reduced the WTP JIPP footprint from 141G to 8.8G.
Here's a script you can run in your jenkins to see what jobs are
eating up all the space. This assumes anything folder/file in the `du`
results that's less than 10M isn't worth deleting:
du -shc /jobs/genie.YOURPROJECT/*/workspace*/* | egrep -v
"(8.0K|4.0K|0)[[:space:]]" > du.list.txt
cat du.list.txt | egrep "^([[:digit:]]{2})M[[:space:]]" | sort
echo "=========================="
cat du.list.txt | egrep "([[:digit:]]{3})M[[:space:]]" | sort
echo "=========================="
cat du.list.txt | egrep "G[[:space:]]" | sort
echo "=========================="
On Thu, Mar 1, 2018 at 8:38 AM, Frederic Gurr
<frederic.g...@eclipse-foundation.org
<mailto:frederic.g...@eclipse-foundation.org>> wrote:
Hi,
I've removed old/stale Hudson workspaces on all hipp machines and was
able to recover 65GB of disk space.
Thanks again Jonah, for bringing this to our attention.
Regards,
Fred
On 27.02.2018 21 <tel:27.02.2018%2021>:47, Frederic Gurr wrote:
> Hi,
>
> Thanks Jonah for sharing the knowledge!
> I will add this to the best practices document and run a check
for such
> stale workspace directories.
>
> Regards,
>
> Fred
>
>
_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@eclipse.org
<mailto:cross-project-issues-dev@eclipse.org>
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
<https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev>
--
Nick Boldt
Senior Software Engineer, RHCSA
Productization Lead :: JBoss Tools & Dev Studio
IM: @nickboldt / @nboldt / http://nick.divbyzero.com
<https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
@ @redhatnews <https://twitter.com/redhatnews> Red Hat
<https://www.facebook.com/RedHatInc>
<https://www.facebook.com/RedHatInc>
“The Only Thing That Is Constant Is Change” - Heraclitus
_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
--
Didier Vojtisek
SED Rennes - DiverSE Team
Univ Rennes, Inria, CNRS, IRISA
Campus de beaulieu
35042 Rennes
02 99 84 75 07
_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev