[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 4 commits: reproducible Debian rebuilder 'thing': refactoring
Holger Levsen
gitlab at salsa.debian.org
Wed Apr 1 02:03:18 BST 2020
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
ab3de238 by Holger Levsen at 2020-04-01T02:52:19+02:00
reproducible Debian rebuilder 'thing': refactoring
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
f2a7c8fa by Holger Levsen at 2020-04-01T02:58:19+02:00
reproducible Debian rebuilder 'thing': add jenkins user to sbuild group
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
b840ae4c by Holger Levsen at 2020-04-01T03:02:15+02:00
reproducible Debian rebuilder 'thing': more verbose output
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
a3d0ebea by Holger Levsen at 2020-04-01T03:03:10+02:00
reproducible Debian rebuilder 'thing': explain goals always
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
2 changed files:
- bin/reproducible_debian_rebuilder_prototype.sh
- update_jdn.sh
Changes:
=====================================
bin/reproducible_debian_rebuilder_prototype.sh
=====================================
@@ -4,6 +4,8 @@
# Copyright 2020 Holger Levsen <holger at layer-acht.org>
# released under the GPLv2
+cat << EOF
+
###########################################################################################
### ###
### the goal is to create json export to integrate in tracker.d.o and/or packages.d.o ###
@@ -18,7 +20,10 @@
### ###
###########################################################################################
-DEBUG=false
+EOF
+
+
+DEBUG=true
. /srv/jenkins/bin/common-functions.sh
common_init "$@"
@@ -27,17 +32,28 @@ common_init "$@"
set -e
output_echo(){
+ echo
echo "$(date -u) - $1"
echo
}
+
+set_poolpath() {
+ # FIXME: dedummy this
+ POOLPATH="b"
+}
+
# main
# basically describe the steps to use debrebuild today...
PKG='bash'
-FILE='bash_5.0-6_amd64.buildinfo'
-URLPATH='https://buildinfos.debian.net/buildinfo-pool/b/bash'
+VERSION='5.0-6'
+FILE="${PKG}_${VERSION}_amd64.buildinfo"
+POOLPATH="" # declared as a global variable
+set_poolpath # set it properly
+URLPATH="https://buildinfos.debian.net/buildinfo-pool/$POOLPATH/$PKG"
# use gpg here to workaround #955050 in devscripts: debrebuild: please accepted signed .buildinfo files
output_echo "downloading $URLPATH/$FILE"
+# FIXME: this will fail with unsigned .buildinfo files
curl $URLPATH/$FILE | gpg > $FILE || true # we cannot validate the signature and we don't care
echo
output_echo "$URLPATH/$FILE with gpg signature stripped:"
@@ -54,8 +70,11 @@ output_echo "trying to debrebuild $PKG..."
# - using tail
# - workaround #955304 in devscripts: debrebuild: suggested sbuild command should use --no-run-lintian
# - using sed
-output_echo "trying to debrebuild $PKG..."
+output_echo "trying to re-sbuild $PKG..."
SBUILD=$(tail -1 $DEBREBUILD | sed 's# sbuild # sbuild --no-run-lintian #')
+output_echo "sbuild is now called as:"
+echo $SBUILD
+echo
eval $SBUILD
# to be continued...
=====================================
update_jdn.sh
=====================================
@@ -163,6 +163,12 @@ users=$(for i in ${!user_host_groups[@]}; do echo ${i%,*} ; done | sort -u)
fi
done
+# configure sbuild:
+case $HOSTNAME in
+ profitbricks-build7-a*) sudo sbuild-adduser jenkins ;;
+ *) ;;
+esac
+
sudo mkdir -p /srv/workspace
[ -d /srv/schroots ] || sudo mkdir -p /srv/schroots
[ -h /chroots ] || sudo ln -s /srv/workspace/chroots /chroots
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/b654e2171805bcc82b1eeebe3a9937d7f07f0d04...a3d0ebea87a25b5bf46ba098f3e2d309d7056842
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/b654e2171805bcc82b1eeebe3a9937d7f07f0d04...a3d0ebea87a25b5bf46ba098f3e2d309d7056842
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/20200401/159da038/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list