Setup csit job to do verify 05/105/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 8 Jan 2016 19:22:08 +0000 (11:22 -0800)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 8 Jan 2016 19:22:08 +0000 (11:22 -0800)
Setup the csit job to do verify and execute ./bootstrap.sh if it exists.
It will fail the job if it does not exist

Change-Id: Ie5f776009f6079693d452b299c3bc185451550ac
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
jjb/csit/csit-vpp-bridge-domain.yaml
jjb/csit/include-raw-csit-build.sh

index a1033cc..7795723 100644 (file)
@@ -31,8 +31,8 @@
     scm:
         - gerrit-trigger-scm:
             credentials-id: '{ssh-credentials}'
-            refspec: ''
-            choosing-strategy: 'default'
+            refspec: '$GERRIT_REFSPEC'
+            choosing-strategy: 'gerrit'
 
     wrappers:
         - ssh-agent-credentials:
index cf5a76e..ce7b58e 100644 (file)
@@ -1,8 +1,15 @@
 #!/bin/bash
-# basic build script example
 
-# do nothing but print the current slave hostname
-git clone ssh://rotterdam-jobbuilder@gerrit.projectrotterdam.info:29418/vpp.git
-cd vpp/build-root/
-./bootstrap.sh
-make PLATFORM=vpp TAG=vpp_debug install-deb
+# execute csit bootstrap script if it exists
+if [ -e bootstrap.sh ]
+then
+    # make sure that bootstrap.sh is executable
+    chmod +x bootstrap.sh
+    # run the script
+    ./bootstrap.sh
+else
+    echo 'ERROR: No bootstrap.sh found'
+    exit 1
+fi
+
+# vim: ts=4 ts=4 sts=4 et :