blob: 6a05cfd129c81787306e5cfecc5eb2f97d58e16d [file] [log] [blame]
Zack Williams56f0f242021-01-11 09:56:16 -07001/* bbsim-scale test */
William Kurkian19b5ebd2019-11-06 13:47:21 -05002
3pipeline {
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"
Matteo Scandolo4d1a12f2020-12-07 16:17:12 -080016 NAME="minimal"
William Kurkian19b5ebd2019-11-06 13:47:21 -050017 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 Bavierb5c8caf2020-04-06 14:12:07 -070030 git clone https:/gerrit.opencord.org/kind-voltha
William Kurkian19b5ebd2019-11-06 13:47:21 -050031 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 Bavierb5c8caf2020-04-06 14:12:07 -070054 cd $WORKSPACE/
55 rm -rf kind-voltha/ voltha/ || true
William Kurkian19b5ebd2019-11-06 13:47:21 -050056 '''
57 }
58 failure {
59 sh '''
60 '''
61 }
62 }
63}