refactor shell commands into a separate script
Change-Id: I31454a600434a707f4960e65e2a1d859c27dd7ef
diff --git a/jjb/onos/onos-verify.sh b/jjb/onos/onos-verify.sh
new file mode 100644
index 0000000..b12f4d9
--- /dev/null
+++ b/jjb/onos/onos-verify.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+ONOS_ROOT=`pwd`
+. tools/build/envDefaults
+echo $PATH
+onos-buck build onos
+onos-buck test
+onos-buck build //docs:external //docs:internal --show-output
diff --git a/jjb/onos/onos-verify.yaml b/jjb/onos/onos-verify.yaml
index c97e018..08932f6 100644
--- a/jjb/onos/onos-verify.yaml
+++ b/jjb/onos/onos-verify.yaml
@@ -91,15 +91,7 @@
builders:
#put shell scripts in file then make sure shell check is installed on verify vms
- - shell: |
- #!/bin/bash
- ONOS_ROOT=`pwd`
- . tools/build/envDefaults
- echo $PATH
- onos-buck build onos
- onos-buck test
- onos-buck build //docs:external //docs:internal --show-output
-
+ - shell: !include-raw-escape: onos-verify.yaml
- project:
name: onos