Commit 6294d6df authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: adjust debstrap script to support debootstrap and add a job for that



Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 535b34bd
...@@ -31,7 +31,7 @@ PARAMS=("$JOB_NAME") ...@@ -31,7 +31,7 @@ PARAMS=("$JOB_NAME")
# add some more params if needed, # add some more params if needed,
case $JOB_NAME in case $JOB_NAME in
rebootstrap_*|chroot-installation_*|haskell-package-plan|reproducible_*debstrap_*) rebootstrap_*|chroot-installation_*|haskell-package-plan|reproducible_*strap_*)
PARAMS+=("$@") PARAMS+=("$@")
;; ;;
reproducible_debian_live_build_*) reproducible_debian_live_build_*)
......
...@@ -86,7 +86,7 @@ elif [ "$1" = "reproducible_pool_buildinfos" ] ; then ...@@ -86,7 +86,7 @@ elif [ "$1" = "reproducible_pool_buildinfos" ] ; then
exec /srv/jenkins/bin/reproducible_pool_buildinfos.sh ; croak "Exec failed"; exec /srv/jenkins/bin/reproducible_pool_buildinfos.sh ; croak "Exec failed";
elif [ "$1" = "reproducible_html_builtin-pho" ] ; then elif [ "$1" = "reproducible_html_builtin-pho" ] ; then
exec /srv/jenkins/bin/reproducible_html_builtin-pho.sh ; croak "Exec failed"; exec /srv/jenkins/bin/reproducible_html_builtin-pho.sh ; croak "Exec failed";
elif [[ "$*" =~ reproducible_.*debstrap.* ]] ; then elif [[ "$*" =~ reproducible_.*strap.* ]] ; then
exec /srv/jenkins/bin/reproducible_debstrap.sh "$2" "$3" ; croak "Exec failed"; exec /srv/jenkins/bin/reproducible_debstrap.sh "$2" "$3" ; croak "Exec failed";
elif [ "$1" = "janitor-setup-worker" ] ; then elif [ "$1" = "janitor-setup-worker" ] ; then
shift ; exec /srv/jenkins/bin/janitor_setup_worker.sh ; croak "Exec failed"; shift ; exec /srv/jenkins/bin/janitor_setup_worker.sh ; croak "Exec failed";
......
...@@ -43,7 +43,11 @@ mkdir -p $BUILDDIR/b2/${TOOL} ...@@ -43,7 +43,11 @@ mkdir -p $BUILDDIR/b2/${TOOL}
output_echo "Verbosely running ${TOOL} $SUITE for the first run." output_echo "Verbosely running ${TOOL} $SUITE for the first run."
case ${TOOL} in case ${TOOL} in
mmdebstrap) sudo ${TOOL} -v $SUITE > $BUILDDIR/b1/${TOOL}/${SUITE}.tar mmdebstrap) sudo mmdebstrap -v $SUITE > $BUILDDIR/b1/${TOOL}/${SUITE}.tar
;;
debootstrap) sudo debootstrap --verbose $SUITE $BUILDDIR/b1/${TOOL}/${SUITE}
sudo tar --mtime=$SOURCE_DATE_EPOCH --clamp-mtime -C $BUILDDIR/b1/${TOOL}/ -cf ${SUITE}.tar ${SUITE}
sudo rm -rf --one-file-system $BUILDDIR/b1/${TOOL}/${SUITE}
;; ;;
*) echo "Failure: ${TOOL} is unsupported." *) echo "Failure: ${TOOL} is unsupported."
exit 1 exit 1
...@@ -52,7 +56,11 @@ esac ...@@ -52,7 +56,11 @@ esac
output_echo "Running ${TOOL} $SUITE for the second run." output_echo "Running ${TOOL} $SUITE for the second run."
case ${TOOL} in case ${TOOL} in
mmdebstrap) sudo ${TOOL} $SUITE > $BUILDDIR/b2/${TOOL}/${SUITE}.tar mmdebstrap) sudo mmdebstrap $SUITE > $BUILDDIR/b2/${TOOL}/${SUITE}.tar
;;
debootstrap) sudo debootstrap --verbose $SUITE $BUILDDIR/b2/${TOOL}/${SUITE}
sudo tar --mtime=$SOURCE_DATE_EPOCH --clamp-mtime -C $BUILDDIR/b2/${TOOL}/ -cf ${SUITE}.tar ${SUITE}
sudo rm -rf --one-file-system $BUILDDIR/b2/${TOOL}/${SUITE}
;; ;;
*) echo "Failure: ${TOOL} is unsupported." *) echo "Failure: ${TOOL} is unsupported."
exit 1 exit 1
......
...@@ -15,6 +15,7 @@ jenkins ALL= \ ...@@ -15,6 +15,7 @@ jenkins ALL= \
/bin/tar -c --exclude ./sys/\* --exclude ./proc/\* -f /schroots/*, \ /bin/tar -c --exclude ./sys/\* --exclude ./proc/\* -f /schroots/*, \
/bin/tar xzf archlinux-bootstrap-*tar.gz -C /schroots, \ /bin/tar xzf archlinux-bootstrap-*tar.gz -C /schroots, \
/bin/tar xzf ./alpine-minirootfs-*.tar.gz -C /schroots/reproducible-alpine.new, \ /bin/tar xzf ./alpine-minirootfs-*.tar.gz -C /schroots/reproducible-alpine.new, \
/bin/tar --mtime=* --clamp-mtime -C /srv/workspace/* -cvf * \
/usr/sbin/chroot /schroots/*, \ /usr/sbin/chroot /schroots/*, \
/usr/sbin/chroot /chroots/*, \ /usr/sbin/chroot /chroots/*, \
/usr/sbin/chroot /media/*, \ /usr/sbin/chroot /media/*, \
......
...@@ -612,12 +612,17 @@ ...@@ -612,12 +612,17 @@
- 'mmdebstrap_bookworm': - 'mmdebstrap_bookworm':
my_description: 'Check mmdebstrap of bookworm is reproducible.' my_description: 'Check mmdebstrap of bookworm is reproducible.'
my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh mmdebstrap bookworm' my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh mmdebstrap bookworm'
my_timed: '15 7 * * *' my_timed: '10 7 * * *'
my_hname: 'osuosl173' my_hname: 'osuosl173'
- 'mmdebstrap_bullseye': - 'mmdebstrap_bullseye':
my_description: 'Check mmdebstrap of bullseye is reproducible.' my_description: 'Check mmdebstrap of bullseye is reproducible.'
my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh mmdebstrap bullseye' my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh mmdebstrap bullseye'
my_timed: '30 7 1 * *' my_timed: '15 7 1 * *'
my_hname: 'osuosl173'
- 'debootstrap_unstable':
my_description: 'Check debootstrap of unstable is reproducible.'
my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh debootstrap unstable'
my_timed: '20 7 * * *'
my_hname: 'osuosl173' my_hname: 'osuosl173'
- 'json': - 'json':
my_description: 'Generate https://reproducible.debian.net/userContent/reproducible.json for consumption by tracker.debian.org.' my_description: 'Generate https://reproducible.debian.net/userContent/reproducible.json for consumption by tracker.debian.org.'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment