Instrument Jenkins images/builds 83/983/6
authorEd Warnicke <eaw@cisco.com>
Wed, 11 May 2016 16:44:28 +0000 (11:44 -0500)
committerEd Warnicke <eaw@cisco.com>
Mon, 16 May 2016 19:45:15 +0000 (14:45 -0500)
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 <eaw@cisco.com>
jjb/vpp/include-raw-vpp-build.sh
vagrant/basebuild/bootstrap.sh

index 872a9de..84a7712 100644 (file)
@@ -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
index c8cc874..a0f5c7f 100644 (file)
@@ -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 ]