blob: 433c6c588805b9301070d7f2e43d083a7be5c01b [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
Kailash Khalasicdb46672018-10-30 12:55:16 -070012 stage ('Clean up') {
13 steps {
14 sh '''
15 rm -rf $WORKSPACE/
16 '''
17 }
18 }
19
20 stage('Voltha Repo') {
Oleg Polyakov9e76f5d2018-06-18 17:21:33 -040021 steps {
22 checkout(changelog: false, \
23 poll: false,
24 scm: [$class: 'RepoScm', \
25 manifestRepositoryUrl: "${params.manifestUrl}", \
26 manifestBranch: "${params.manifestBranch}", \
27 currentBranch: true, \
28 destinationDir: 'cord', \
29 forceSync: true,
30 resetFirst: true, \
31 quiet: true, \
32 jobs: 4, \
33 showAllChanges: true] \
34 )
35 }
36 }
37
Kailash Khalasicdb46672018-10-30 12:55:16 -070038 stage ('Build Voltha and ONOS') {
Oleg Polyakov9e76f5d2018-06-18 17:21:33 -040039 steps {
Oleg Polyakovd9de9032018-06-28 11:42:32 -040040 sh '''
41 cd $WORKSPACE/cord/incubator/voltha
Kailash Khalasicdb46672018-10-30 12:55:16 -070042 chmod +x env.sh
Oleg Polyakovd9de9032018-06-28 11:42:32 -040043 source env.sh
Oleg Polyakovd9de9032018-06-28 11:42:32 -040044 '''
45 }
46 }
Oleg Polyakov9e76f5d2018-06-18 17:21:33 -040047
Oleg Polyakov4d454362018-06-15 10:52:52 -040048 stage ('Start Provisioning Test') {
49 steps {
Kailash Khalasicdb46672018-10-30 12:55:16 -070050 sh '''
51 cd $WORKSPACE/cord/incubator/voltha/tests/atests/common/
52 ./run_robot.sh jenkinstest
53 '''
Oleg Polyakov4d454362018-06-15 10:52:52 -040054 }
55 }
Kailash Khalasicdb46672018-10-30 12:55:16 -070056
57 stage('Publish') {
58 steps {
59 sh """
60 if [ -d RobotLogs ]; then rm -r RobotLogs; fi; mkdir RobotLogs
61 cp -r $WORKSPACE/cord/incubator/voltha/jenkinstest/ ./RobotLogs
62 """
63
64 step([$class: 'RobotPublisher',
65 disableArchiveOutput: false,
66 logFileName: 'RobotLogs/log*.html',
67 otherFiles: '',
68 outputFileName: 'RobotLogs/output*.xml',
69 outputPath: '.',
70 passThreshold: 100,
71 reportFileName: 'RobotLogs/report*.html',
72 unstableThreshold: 0]);
73 }
74 }
75
Oleg Polyakovd9de9032018-06-28 11:42:32 -040076 }
Oleg Polyakov4d454362018-06-15 10:52:52 -040077}
Kailash Khalasicdb46672018-10-30 12:55:16 -070078
79