Oleg Polyakov | 4d45436 | 2018-06-15 10:52:52 -0400 | [diff] [blame] | 1 | /* voltha-atest-provisioning pipeline */ |
| 2 | |
| 3 | pipeline { |
| 4 | |
| 5 | /* no label, executor is determined by JJB */ |
| 6 | agent { |
| 7 | label "${params.executorNode}" |
| 8 | } |
| 9 | |
| 10 | stages { |
| 11 | |
Kailash Khalasi | cdb4667 | 2018-10-30 12:55:16 -0700 | [diff] [blame] | 12 | stage ('Clean up') { |
| 13 | steps { |
| 14 | sh ''' |
| 15 | rm -rf $WORKSPACE/ |
| 16 | ''' |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | stage('Voltha Repo') { |
Oleg Polyakov | 9e76f5d | 2018-06-18 17:21:33 -0400 | [diff] [blame] | 21 | 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 Khalasi | cdb4667 | 2018-10-30 12:55:16 -0700 | [diff] [blame] | 38 | stage ('Build Voltha and ONOS') { |
Oleg Polyakov | 9e76f5d | 2018-06-18 17:21:33 -0400 | [diff] [blame] | 39 | steps { |
Oleg Polyakov | d9de903 | 2018-06-28 11:42:32 -0400 | [diff] [blame] | 40 | sh ''' |
| 41 | cd $WORKSPACE/cord/incubator/voltha |
Kailash Khalasi | cdb4667 | 2018-10-30 12:55:16 -0700 | [diff] [blame] | 42 | chmod +x env.sh |
Oleg Polyakov | d9de903 | 2018-06-28 11:42:32 -0400 | [diff] [blame] | 43 | source env.sh |
Oleg Polyakov | d9de903 | 2018-06-28 11:42:32 -0400 | [diff] [blame] | 44 | ''' |
| 45 | } |
| 46 | } |
Oleg Polyakov | 9e76f5d | 2018-06-18 17:21:33 -0400 | [diff] [blame] | 47 | |
Oleg Polyakov | 4d45436 | 2018-06-15 10:52:52 -0400 | [diff] [blame] | 48 | stage ('Start Provisioning Test') { |
| 49 | steps { |
Kailash Khalasi | cdb4667 | 2018-10-30 12:55:16 -0700 | [diff] [blame] | 50 | sh ''' |
| 51 | cd $WORKSPACE/cord/incubator/voltha/tests/atests/common/ |
| 52 | ./run_robot.sh jenkinstest |
| 53 | ''' |
Oleg Polyakov | 4d45436 | 2018-06-15 10:52:52 -0400 | [diff] [blame] | 54 | } |
| 55 | } |
Kailash Khalasi | cdb4667 | 2018-10-30 12:55:16 -0700 | [diff] [blame] | 56 | |
| 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 Polyakov | d9de903 | 2018-06-28 11:42:32 -0400 | [diff] [blame] | 76 | } |
Oleg Polyakov | 4d45436 | 2018-06-15 10:52:52 -0400 | [diff] [blame] | 77 | } |
Kailash Khalasi | cdb4667 | 2018-10-30 12:55:16 -0700 | [diff] [blame] | 78 | |
| 79 | |