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
1aae53db
Verified
Commit
1aae53db
authored
Aug 31, 2022
by
Mattia Rizzolo
Browse files
reproducible debstrap: move the temporary builddir someplace that the jenkins user can delete
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
dd78819d
Changes
2
Show whitespace changes
Inline
Side-by-side
bin/reproducible_debstrap.sh
View file @
1aae53db
...
@@ -50,8 +50,10 @@ else
...
@@ -50,8 +50,10 @@ else
CODENAME
=
sid
CODENAME
=
sid
fi
fi
export
BUILDDIR
=
$(
mktemp
--tmpdir
=
/srv/workspace/
-d
-t
${
TOOL
}
-
${
SUITE
}
.XXXXXXXX
)
mkdir
-p
/srv/workspace/tempdir/
export
RESULTSDIR
=
$(
mktemp
--tmpdir
=
/srv/reproducible-results
-d
-t
${
TOOL
}
-
${
SUITE
}
.XXXXXXXX
)
# accessible in schroots, used to compare results
BUILDDIR
=
$(
mktemp
--tmpdir
=
/srv/workspace/tempdir/
-d
-t
"debstrap_
${
TOOL
}
-
${
SUITE
}
.XXXXXXXX"
)
RESULTSDIR
=
$(
mktemp
--tmpdir
=
/srv/reproducible-results
-d
-t
"
${
TOOL
}
-
${
SUITE
}
.XXXXXXXX"
)
# accessible in schroots, used to compare results
export
BUILDDIR RESULTSDIR
# Cleanup if something goes wrong
# Cleanup if something goes wrong
trap
cleanup INT TERM EXIT
trap
cleanup INT TERM EXIT
...
...
hosts/common/etc/sudoers.d/jenkins
View file @
1aae53db
...
@@ -23,6 +23,7 @@ jenkins ALL= \
...
@@ -23,6 +23,7 @@ jenkins ALL= \
/bin/ls -la /media/*, \
/bin/ls -la /media/*, \
/bin/rm -rf --one-file-system /chroots/*, \
/bin/rm -rf --one-file-system /chroots/*, \
/bin/rm -rf --one-file-system /schroots/*, \
/bin/rm -rf --one-file-system /schroots/*, \
/bin/rm -rf --one-file-system /srv/workspace/tempdir/*, \
/bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \
/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 /srv/workspace/live-build*, \
/bin/rm -rf --one-file-system /srv/workspace/mmdebstrap*, \
/bin/rm -rf --one-file-system /srv/workspace/mmdebstrap*, \
...
...
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