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
22cd970a
Commit
22cd970a
authored
Aug 29, 2022
by
Holger Levsen
Browse files
reproducible Debian: debstrap jobs: temp. call diffoscope differently...
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
2bacb628
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/reproducible_debstrap.sh
View file @
22cd970a
...
@@ -16,17 +16,19 @@ set -o pipefail # see eg http://petereisentraut.blogspot.com/2010/11/pipefail.ht
...
@@ -16,17 +16,19 @@ set -o pipefail # see eg http://petereisentraut.blogspot.com/2010/11/pipefail.ht
cleanup
()
{
cleanup
()
{
local
RESULT
=
$1
local
RESULT
=
$1
output_echo
"Cleanup
${
RESULT
}
"
output_echo
"Cleanup
${
RESULT
}
"
# Cleanup the workspace
# Cleanup the workspace and results directory
if
[
!
-z
"
${
BUILDDIR
}
"
]
;
then
for
CLEANUP
in
${
BUILDDIR
}
${
RESULTSDIR
}
;
do
echo sudo rm
-rf
--one-file-system
${
BUILDDIR
}
if
[
!
-z
"
$CLEANUP
"
]
;
then
fi
echo sudo rm
-rf
--one-file-system
${
CLEANUP
}
fi
done
}
}
# Init some variables
# Init some variables
export
TOOL
=
"
$1
"
export
TOOL
=
"
$1
"
export
SUITE
=
"
$2
"
export
SUITE
=
"
$2
"
output_echo
"About to bootstrap
$SUITE
using
$TOOL
."
output_echo
"About to bootstrap
$SUITE
using
$TOOL
version
$(
dpkg-query
--showformat
=
'${Version}'
--show
$TOOL
)
."
export
SOURCE_DATE_EPOCH
=
"
$(
date
+%s
)
"
export
SOURCE_DATE_EPOCH
=
"
$(
date
+%s
)
"
output_echo
"SOURCE_DATE_EPOCH=
$SOURCE_DATE_EPOCH
"
output_echo
"SOURCE_DATE_EPOCH=
$SOURCE_DATE_EPOCH
"
export
BUILDDIR
=
$(
mktemp
--tmpdir
=
/srv/workspace/
-d
-t
${
TOOL
}
-
${
SUITE
}
.XXXXXXXX
)
export
BUILDDIR
=
$(
mktemp
--tmpdir
=
/srv/workspace/
-d
-t
${
TOOL
}
-
${
SUITE
}
.XXXXXXXX
)
...
@@ -84,7 +86,10 @@ else
...
@@ -84,7 +86,10 @@ else
TIMEOUT
=
"240m"
TIMEOUT
=
"240m"
DIFFOSCOPE
=
"
$(
schroot
--directory
/tmp
-c
chroot
:jenkins-reproducible-
${
DBDSUITE
}
-diffoscope
diffoscope
--
--version
2>&1
)
"
DIFFOSCOPE
=
"
$(
schroot
--directory
/tmp
-c
chroot
:jenkins-reproducible-
${
DBDSUITE
}
-diffoscope
diffoscope
--
--version
2>&1
)
"
TMPDIR
=
${
RESULTSDIR
}
TMPDIR
=
${
RESULTSDIR
}
call_diffoscope
${
TOOL
}
${
SUITE
}
.tar
#call_diffoscope ${TOOL} ${SUITE}.tar
# the previous, temporarily disabled line is only useful if we also make the .html file visible...
schroot
--directory
/tmp
-c
chroot
:jenkins-reproducible-
${
DBDSUITE
}
-diffoscope
diffoscope
--
--restructured-text
$RESULTSDIR
/
${
TOOL
}
_
${
SUITE
}
.txt
$RESULTSDIR
/b1/
${
TOOL
}
/
${
SUITE
}
.tar
$RESULTSDIR
/b2/
${
TOOL
}
/
${
SUITE
}
.tar
cat
$RESULTSDIR
/
${
TOOL
}
_
${
SUITE
}
.txt
fi
fi
cleanup success
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