[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] Allow SOURCE_DATE_EPOCH and LIVE_BUILD to enter the sudo environment
Holger Levsen (@holger)
gitlab at salsa.debian.org
Thu Jun 17 11:27:36 BST 2021
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
cad52f63 by Roland Clobus at 2021-06-17T12:27:17+02:00
Allow SOURCE_DATE_EPOCH and LIVE_BUILD to enter the sudo environment
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
2 changed files:
- bin/reproducible_debian_live_build.sh
- hosts/osuosl173-amd64/etc/sudoers.d/live-build
Changes:
=====================================
bin/reproducible_debian_live_build.sh
=====================================
@@ -193,7 +193,7 @@ EOF
# First build
-sudo SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH} LIVE_BUILD=${LIVE_BUILD} lb build | tee -a $LB_OUTPUT
+sudo lb build | tee -a $LB_OUTPUT
RESULT=$?
if [ "$RESULT" != "0" ] ; then
output_echo "Warning: lb config failed with $RESULT"
@@ -211,7 +211,7 @@ if [ "$RESULT" != "0" ] ; then
fi
# Second build
-sudo SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH} LIVE_BUILD=${LIVE_BUILD} lb build | tee -a $LB_OUTPUT
+sudo lb build | tee -a $LB_OUTPUT
RESULT=$?
if [ "$RESULT" != "0" ] ; then
output_echo "Warning: lb config failed with $RESULT"
=====================================
hosts/osuosl173-amd64/etc/sudoers.d/live-build
=====================================
@@ -1 +1,3 @@
+Defaults env_keep += "SOURCE_DATE_EPOCH"
+Defaults env_keep += "LIVE_BUILD"
jenkins ALL=(root) NOPASSWD: /usr/bin/lb build
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/cad52f630db475a2571e1d81ce8527a0d3664f7f
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/cad52f630db475a2571e1d81ce8527a0d3664f7f
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/20210617/55828286/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list