blob: bc15b0962f1fb9d142e323a0ce1c2324b3b89887 [file] [log] [blame]
Oleg Polyakov4d454362018-06-15 10:52:52 -04001/* voltha-atest-provisioning pipeline */
2
3pipeline {
4
5 /* no label, executor is determined by JJB */
6 agent {
7 label "${params.executorNode}"
8 }
9
10 stages {
11
Oleg Polyakov9e76f5d2018-06-18 17:21:33 -040012 stage('voltha Repo') {
13 steps {
14 checkout(changelog: false, \
15 poll: false,
16 scm: [$class: 'RepoScm', \
17 manifestRepositoryUrl: "${params.manifestUrl}", \
18 manifestBranch: "${params.manifestBranch}", \
19 currentBranch: true, \
20 destinationDir: 'cord', \
21 forceSync: true,
22 resetFirst: true, \
23 quiet: true, \
24 jobs: 4, \
25 showAllChanges: true] \
26 )
27 }
28 }
29
Oleg Polyakov9e76f5d2018-06-18 17:21:33 -040030 stage ('Build voltha and onos') {
31 steps {
Oleg Polyakovd9de9032018-06-28 11:42:32 -040032 sh '''
33 cd $WORKSPACE/cord/incubator/voltha
34 source env.sh
35 make fetch
36 make clean
37 make build
38 make onos
39 '''
40 }
41 }
Oleg Polyakov9e76f5d2018-06-18 17:21:33 -040042
Oleg Polyakov4d454362018-06-15 10:52:52 -040043 stage ('Start Provisioning Test') {
44 steps {
45 println 'Start Provisioning Test'
Oleg Polyakovd9de9032018-06-28 11:42:32 -040046 println 'Run the following commands when the testing code is in Gerrit'
47 println 'cd tests/atests/'
48 println 'robot -d results -v LOG_DIR:/tmp robot/auto_testing.robot'
Oleg Polyakov4d454362018-06-15 10:52:52 -040049 }
50 }
Oleg Polyakovd9de9032018-06-28 11:42:32 -040051 }
Oleg Polyakov4d454362018-06-15 10:52:52 -040052}