blob: 45f61993581ed8bcf1edc9929e363fddedc27bc7 [file] [log] [blame]
Ray Milkeycfbc5be2018-05-08 09:13:13 -07001#!/bin/bash
2
Ray Milkeyf7c53762018-05-10 16:12:15 +00003# exit on errors
4set -eu -o pipefail
5
Ray Milkeycfbc5be2018-05-08 09:13:13 -07006# initialize build environment
7ONOS_ROOT=`pwd`
8. tools/build/envDefaults
9
10# initialize development environment for STC
11export JAVA_HOME=
12. tools/dev/bash_profile
13
Ray Milkeybad5c112018-11-09 14:24:07 -080014PATH=$PATH:/home/jenkins/bin
Ray Milkeycfbc5be2018-05-08 09:13:13 -070015
16# always free the cell when exiting
17function cleanup {
18 cell return jenkins-${ONOS_VERSION}
19}
20
21trap cleanup EXIT
22
23# grab a cell to run on
Ray Milkeyf7c53762018-05-10 16:12:15 +000024cell borrow 30 3+1 jenkins-${ONOS_VERSION}
Ray Milkeycfbc5be2018-05-08 09:13:13 -070025
26# build onos bits
27onos-buck build onos
28
29# set up STC parameters
30topo default
31export stcDumpLogs="true"
32export stcColor="false"
33export stcHaltOnError="false"
34export TERM="vt100"
35
36# run STC
37stc setup && stc net-trellis-hag-smoke