Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
e71e3cf1
Commit
e71e3cf1
authored
Jun 13, 2022
by
Holger Levsen
Browse files
reproducible Debian live-build: cleanup the same way we cleanup the rest
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
f53a53bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/reproducible_maintenance.sh
View file @
e71e3cf1
...
...
@@ -126,7 +126,8 @@ OLDSTUFF=$(find $REP_RESULTS -maxdepth 1 -type d -mtime +0 -name "live-build-*"
if
[
!
-z
"
$OLDSTUFF
"
]
;
then
echo
echo
"Old temp directories for live-build found in
$REP_RESULTS
"
find
$REP_RESULTS
-maxdepth
1
-type
d
-mtime
+0
-name
"live-build-*"
-exec
sudo rm
-rv
--one-file-system
{}
\;
||
true
echo
-n
"
$OLDSTUFF
"
find
$REP_RESULTS
-maxdepth
1
-type
d
-mtime
+0
-name
"live-build-*"
-exec
sudo rm
-rf
--one-file-system
{}
\;
||
true
echo
"These old temp directories for live-build have been deleted."
echo
DIRTY
=
true
...
...
@@ -136,7 +137,8 @@ OLDSTUFF=$(find /srv/workspace/live-build -maxdepth 1 -type d -mtime +0 -name "*
if
[
!
-z
"
$OLDSTUFF
"
]
;
then
echo
echo
"Old temp workspace directories for live-build found in /srv/workspace/live-build"
find /srv/workspace/live-build
-maxdepth
1
-type
d
-mtime
+0
-name
"*.*"
-exec
sudo rm
-rfv
--one-file-system
{}
\;
||
true
echo
-n
"
$OLDSTUFF
"
find /srv/workspace/live-build
-maxdepth
1
-type
d
-mtime
+0
-name
"*.*"
-exec
sudo rm
-rf
--one-file-system
{}
\;
||
true
echo
"These old temp workspace directories have been deleted."
echo
DIRTY
=
true
...
...
hosts/common/etc/sudoers.d/jenkins
View file @
e71e3cf1
...
...
@@ -22,6 +22,7 @@ jenkins ALL= \
/bin/rm -rf --one-file-system /chroots/*, \
/bin/rm -rf --one-file-system /schroots/*, \
/bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \
/bin/rm -rf --one-file-system /srv/workspace/live-build*, \
/bin/rm -rf --one-file-system /var/lib/sbuild/build/*, \
/bin/rm -rf --one-file-system /var/lib/schroot/union/*, \
/bin/rm -rf --one-file-system /tmp/*, \
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment