[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: correct tar and sudo syntax for new debootstrap job

Holger Levsen (@holger) gitlab at salsa.debian.org
Mon Aug 29 18:28:35 BST 2022



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
297b9827 by Holger Levsen at 2022-08-29T19:28:21+02:00
reproducible Debian: correct tar and sudo syntax for new debootstrap job

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- bin/reproducible_debstrap.sh
- hosts/common/etc/sudoers.d/jenkins


Changes:

=====================================
bin/reproducible_debstrap.sh
=====================================
@@ -59,7 +59,7 @@ for LOOP in "first" "second" ; do
 		mmdebstrap)	sudo $REALTOOL $SUITE > $BUILDDIR/$SUBDIR/${TOOL}/${SUITE}.tar
 				;;
 		debootstrap)	sudo $REALTOOL $SUITE $BUILDDIR/$SUBDIR/${TOOL}/${SUITE}
-				sudo tar --mtime=$SOURCE_DATE_EPOCH --clamp-mtime -C $BUILDDIR/$SUBDIR/${TOOL}/ -cf ${SUITE}.tar ${SUITE}
+				sudo tar --mtime="@$SOURCE_DATE_EPOCH" --clamp-mtime -C $BUILDDIR/$SUBDIR/${TOOL}/ -cf ${SUITE}.tar ${SUITE}
 				sudo rm -rf --one-file-system $BUILDDIR/$SUBDIR/${TOOL}/${SUITE}
 				;;
 		*)		echo "Failure: ${TOOL} is unsupported."


=====================================
hosts/common/etc/sudoers.d/jenkins
=====================================
@@ -24,7 +24,7 @@ jenkins ALL=  \
 	/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 /srv/workspace/mmdebstrap*, \
+	/bin/rm -rf --one-file-system /srv/workspace/*debstrap*, \
 	/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/*, \



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/297b9827e1df1d5580f9794177abf304531a7aee

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/297b9827e1df1d5580f9794177abf304531a7aee
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20220829/1b6fa0a6/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list