blob: 1d92c19b4b20dd8058ec894967780838ebc3b0fa [file] [log] [blame]
William Kurkian19b5ebd2019-11-06 13:47:21 -05001/* seba-in-a-box build+test */
2
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"
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 """
30 git clone https://github.com/ciena/kind-voltha.git
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
54 cd $WORKSPACE/
55 rm -rf kind-voltha/ voltha/ || true
56 '''
57 }
58 failure {
59 sh '''
60 '''
61 }
62 }
63}