From: Ed Warnicke Date: Wed, 11 May 2016 16:44:28 +0000 (-0500) Subject: Instrument Jenkins images/builds X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=39f70768ba8149972ce55f805a76029a8711bf7b;p=ci-management.git Instrument Jenkins images/builds This patch instruments so we can be certain *what* bootstrap.sh was used to build the running image and what include-raw-vpp-build.sh was run for the Job Change-Id: I69782c3bca71f24d24133205130be059a14a114c Signed-off-by: Ed Warnicke --- diff --git a/jjb/vpp/include-raw-vpp-build.sh b/jjb/vpp/include-raw-vpp-build.sh index 872a9de19..84a77129b 100644 --- a/jjb/vpp/include-raw-vpp-build.sh +++ b/jjb/vpp/include-raw-vpp-build.sh @@ -11,6 +11,16 @@ else echo $CCACHE_DIR does not exist. This must be a new slave. fi +echo "cat /etc/bootstrap.sha" +if [ -f /etc/bootstrap.sha ];then + cat /etc/bootstrap.sha +else + echo "Cannot find cat /etc/bootstrap.sha" +fi + +echo "shasum of this script: ${0}" +shasum $0 + # Check to make sure the patch doesn't need to be rebased # Since there was a discontinuity, patches with a # parent before 30d41ff need to be rebased diff --git a/vagrant/basebuild/bootstrap.sh b/vagrant/basebuild/bootstrap.sh index c8cc87492..a0f5c7f25 100644 --- a/vagrant/basebuild/bootstrap.sh +++ b/vagrant/basebuild/bootstrap.sh @@ -8,6 +8,9 @@ set -e do_setup +# record the bootstrap.sh checksum +shasum $0 > /etc/bootstrap.sha + echo "---> Attempting to detect OS" # OS selector if [ -f /usr/bin/yum ]