blob: 5af7063656d09c17be44471eda578be948f72a4d [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 """
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}