diff options
author | Sven Gothel <[email protected]> | 2011-07-24 05:29:32 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-07-24 05:29:32 +0200 |
commit | e806800ac0a3e0bc3b855d6a430428f1984eff28 (patch) | |
tree | 4e628b41e6a30f22e51c4d195a56407e1dd02f03 /jenkins-server-slave-setup/scripts/backup_clean-workspace.sh | |
parent | 477140f53cf387f09b1336630ed45bebad2b5ff8 (diff) |
Add jenkins server slave setup docs/scripts
Diffstat (limited to 'jenkins-server-slave-setup/scripts/backup_clean-workspace.sh')
-rwxr-xr-x | jenkins-server-slave-setup/scripts/backup_clean-workspace.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/jenkins-server-slave-setup/scripts/backup_clean-workspace.sh b/jenkins-server-slave-setup/scripts/backup_clean-workspace.sh new file mode 100755 index 0000000..67b4e76 --- /dev/null +++ b/jenkins-server-slave-setup/scripts/backup_clean-workspace.sh @@ -0,0 +1,18 @@ +#! /bin/sh + +bdir=$1 +shift + +echo TOTAL $bdir +du -hsc $bdir + +echo +echo Cleaning workspace $bdir +rm -rf `find $bdir -name workspace` +rm -rf `find $bdir -name workspace-files` +rm -rf `find $bdir -name javadoc` + +echo +echo Cleaned TOTAL $bdir +du -hsc $bdir + |