summaryrefslogtreecommitdiffstats
path: root/vagrant/provision
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2015-01-02 13:50:44 +0000
committerTails developers <amnesia@boum.org>2015-01-03 10:12:53 +0000
commitcb67b714060abf277e66b328335fa5b0fc672c44 (patch)
tree58002121357d9658fd10c463c4ce68fd881b3a17 /vagrant/provision
parentc1e83b58d3fb7cae4235558cdd9e0e22b572b64a (diff)
Generate the list of packages used during build, after building with Jenkins.
Diffstat (limited to 'vagrant/provision')
-rwxr-xr-xvagrant/provision/assets/build-tails12
1 files changed, 12 insertions, 0 deletions
diff --git a/vagrant/provision/assets/build-tails b/vagrant/provision/assets/build-tails
index 7c9cf59..9a3dd33 100755
--- a/vagrant/provision/assets/build-tails
+++ b/vagrant/provision/assets/build-tails
@@ -129,6 +129,18 @@ if [ -n "$JENKINS_URL" ]; then
sha512sum "$file" >> "$ISO.shasum"
done
gpg --batch --detach-sign --armor "$ISO.shasum"
+
+ USER_ON_ACNG_HOST=jenkins
+ ACNG_HOST=apt-proxy.lizard
+ ACNG_REMOTE_LOG=/var/log/apt-cacher-ng/apt-cacher.log
+ ACNG_LOCAL_LOG=$(basename "$ACNG_REMOTE_LOG")
+ sftp "${USER_ON_ACNG_HOST}@${ACNG_HOST}:${ACNG_REMOTE_LOG}"
+ BUILD_IP=$(ip a show dev eth0 | grep '^\s\+inet\s' | awk '{print $2}' | sed -e 's,/.*,,')
+ START_TIME=$(cat "$ISO.start.timestamp")
+ END_TIME=$(cat "$ISO.end.timestamp")
+ ./auto/scripts/packages-from-acng-log "$ACNG_LOCAL_LOG" "$BUILD_IP" \
+ "$START_TIME" "$END_TIME" \
+ "${ISO}.binpkgs" "${ISO}.srcpkgs"
fi
mv -f tails-* "$ARTIFACTS_DIR"