William Kurkian | 19b5ebd | 2019-11-06 13:47:21 -0500 | [diff] [blame] | 1 | /* seba-in-a-box build+test */ |
| 2 | |
| 3 | pipeline { |
| 4 | |
| 5 | /* no label, executor is determined by JJB */ |
| 6 | agent { |
| 7 | label "${params.buildNode}" |
| 8 | } |
| 9 | |
| 10 | options { |
| 11 | timeout(time: 90, unit: 'MINUTES') |
| 12 | } |
| 13 | |
| 14 | environment { |
| 15 | VOLTHA_LOG_LEVEL="DEBUG" |
| 16 | TYPE="minimal" |
| 17 | WITH_RADIUS="y" |
| 18 | WITH_BBSIM="y" |
| 19 | INSTALL_ONOS_APPS="y" |
| 20 | CONFIG_SADIS="y" |
| 21 | FANCY=0 |
| 22 | WITH_SIM_ADAPTERS="n" |
| 23 | } |
| 24 | |
| 25 | stages { |
| 26 | |
| 27 | stage('Create K8s Cluster') { |
| 28 | steps { |
| 29 | sh """ |
Andy Bavier | b5c8caf | 2020-04-06 14:12:07 -0700 | [diff] [blame] | 30 | git clone https:/gerrit.opencord.org/kind-voltha |
William Kurkian | 19b5ebd | 2019-11-06 13:47:21 -0500 | [diff] [blame] | 31 | cd kind-voltha/ |
| 32 | DEPLOY_K8S=y JUST_K8S=y ./voltha up |
| 33 | """ |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | stage('Deploy Voltha') { |
| 38 | steps { |
| 39 | sh ''' |
| 40 | cd $WORKSPACE/kind-voltha/ |
| 41 | echo \$HELM_FLAG |
| 42 | ./voltha up |
| 43 | ''' |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | |
| 48 | } |
| 49 | |
| 50 | post { |
| 51 | always { |
| 52 | sh ''' |
| 53 | WAIT_ON_DOWN=y ./voltha down |
Andy Bavier | b5c8caf | 2020-04-06 14:12:07 -0700 | [diff] [blame] | 54 | cd $WORKSPACE/ |
| 55 | rm -rf kind-voltha/ voltha/ || true |
William Kurkian | 19b5ebd | 2019-11-06 13:47:21 -0500 | [diff] [blame] | 56 | ''' |
| 57 | } |
| 58 | failure { |
| 59 | sh ''' |
| 60 | ''' |
| 61 | } |
| 62 | } |
| 63 | } |