summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-23 18:39:45 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-23 18:39:45 +0200
commit99a5106f6fca22e843478cb72bb38a6bc91d2299 (patch)
tree2825cac4965b4832d4b014eca005621662c57424 /bin/reproducible_build.sh
parent0891306bd36d87fb718cc46ab2eced2d800b8712 (diff)
downloadjenkins.debian.net-99a5106f6fca22e843478cb72bb38a6bc91d2299.tar.xz
reproducible jobs: make basic job working
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
new file mode 100755
index 00000000..641a46d7
--- /dev/null
+++ b/bin/reproducible_build.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# Copyright 2014 Holger Levsen <holger@layer-acht.org>
+# released under the GPLv=2
+
+. /srv/jenkins/bin/common-functions.sh
+common_init "$@"
+
+PACKAGE=$1
+apt-get source --download-only ${PACKAGE}
+sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${PACKAGE}_*.dsc
+mkdir b1 b2
+dcmd cp /var/cache/pbuilder/result/${PACKAGE}_*.changes b1
+sudo dcmd rm /var/cache/pbuilder/result/${PACKAGE}_*.changes
+sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${PACKAGE}_*.dsc
+dcmd cp /var/cache/pbuilder/result/${PACKAGE}_*.changes b2
+sudo dcmd rm /var/cache/pbuilder/result/${PACKAGE}_*.changes
+