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
4c7c909d
Commit
4c7c909d
authored
Aug 26, 2022
by
Holger Levsen
Browse files
reproducible Debian: mmdebstrap job: make results accessable to call_diffoscope()
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
2f11e8cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/jenkins_node_wrapper.sh
View file @
4c7c909d
...
...
@@ -86,7 +86,7 @@ elif [ "$1" = "reproducible_pool_buildinfos" ] ; then
exec
/srv/jenkins/bin/reproducible_pool_buildinfos.sh
;
croak
"Exec failed"
;
elif
[
"
$1
"
=
"reproducible_html_builtin-pho"
]
;
then
exec
/srv/jenkins/bin/reproducible_html_builtin-pho.sh
;
croak
"Exec failed"
;
elif
[
"
$
1
"
=
"
reproducible_mmdebstrap.*
"
]
;
then
elif
[
[
"
$
*
"
=
~
reproducible_mmdebstrap.
*
]
]
;
then
exec
/srv/jenkins/bin/reproducible_mmdebstrap.sh
"
$2
"
;
croak
"Exec failed"
;
elif
[
"
$1
"
=
"janitor-setup-worker"
]
;
then
shift
;
exec
/srv/jenkins/bin/janitor_setup_worker.sh
;
croak
"Exec failed"
;
...
...
bin/reproducible_mmdebstrap.sh
View file @
4c7c909d
...
...
@@ -27,6 +27,7 @@ cleanup() {
export
SUITE
=
"
$1
"
export
SOURCE_DATE_EPOCH
=
"
$(
date
+%s
)
"
export
BUILDDIR
=
$(
mktemp
--tmpdir
=
/srv/workspace/
-d
-t
mmdebstrap-
${
SUITE
}
.XXXXXXXX
)
export
RESULTSDIR
=
$(
mktemp
--tmpdir
=
/srv/reproducible-results
-d
-t
mmdebstrap-
${
SUITE
}
.XXXXXXXX
)
# accessible in schroots, used to compare results
# Cleanup if something goes wrong
trap
cleanup INT TERM EXIT
...
...
@@ -43,11 +44,13 @@ sudo mmdebstrap $SUITE > $BUILDDIR/b1/mmdebstrap/${SUITE}.tar
output_echo
"Running mmdebstrap
$SUITE
for the second run."
sudo
mmdebstrap
$SUITE
>
$BUILDDIR
/b2/mmdebstrap/
${
SUITE
}
.tar
mv
$BUILDDIR
/b1
$BUILDDIR
/b2
$RESULTSDIR
/
# Run diffoscope on the images
output_echo
"Calling diffoscope on the results."
TIMEOUT
=
"240m"
DIFFOSCOPE
=
"
$(
schroot
--directory
/tmp
-c
chroot
:jenkins-reproducible-
${
DBDSUITE
}
-diffoscope
diffoscope
--
--version
2>&1
)
"
TMPDIR
=
${
BUILD
DIR
}
TMPDIR
=
${
RESULTS
DIR
}
call_diffoscope mmdebstrap
${
SUITE
}
.tar
cleanup success
...
...
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