2 # basic build script example
4 # do nothing but print the current slave hostname
6 export CCACHE_DIR=/tmp/ccache
7 if [ -d $CCACHE_DIR ];then
8 echo $CCACHE_DIR exists
11 echo $CCACHE_DIR does not exist. This must be a new slave.
14 echo "cat /etc/bootstrap.sha"
15 if [ -f /etc/bootstrap.sha ];then
16 cat /etc/bootstrap.sha
18 echo "Cannot find cat /etc/bootstrap.sha"
21 echo "cat /etc/bootstrap-functions.sha"
22 if [ -f /etc/bootstrap-functions.sha ];then
23 cat /etc/bootstrap-functions.sha
25 echo "Cannot find cat /etc/bootstrap-functions.sha"
28 echo "sha1sum of this script: ${0}"
31 # Check to make sure the patch doesn't need to be rebased
32 # Since there was a discontinuity, patches with a
33 # parent before 30d41ff need to be rebased
35 (git log --oneline | grep 30d41ff > /dev/null 2>&1);if [ $? != 0 ]; then REBASE_NEEDED="1";fi
36 (git log --oneline | grep fb0815d > /dev/null 2>&1);if [ $? == 0 ]; then VPP_REPO="1";fi
38 # Due to a shift to make verify, after 2016-12-01 we need to make sure any patches
39 # coming in happen after 37682e1
40 (git log --oneline | grep 37682e1 > /dev/null 2>&1);if [ $? != 0 ]; then REBASE_NEEDED="1";fi
42 echo "REBASE_NEEDED: ${REBASE_NEEDED}"
43 echo "VPP_REPO: ${VPP_REPO}"
45 if [ "x${VPP_REPO}" == "x1" ]; then
46 if [ "x${REBASE_NEEDED}" == "x1" ]; then
47 echo "This patch to vpp is based on an old point in the tree that is likely"
48 echo "to fail verify."
49 echo "PLEASE REBASE PATCH ON THE CURRENT HEAD OF THE VPP REPO"
54 echo "IS_CSIT_VPP_JOB=${IS_CSIT_VPP_JOB}"
55 make UNATTENDED=yes verify
57 echo "*******************************************************************"
58 echo "* VPP BUILD SUCCESSFULLY COMPLETED"
59 echo "*******************************************************************"