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 | |
Oleg Polyakov | 9e76f5d | 2018-06-18 17:21:33 -0400 | [diff] [blame] | 12 | 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 Polyakov | 9e76f5d | 2018-06-18 17:21:33 -0400 | [diff] [blame] | 30 | stage ('Build voltha and onos') { |
| 31 | steps { |
Oleg Polyakov | d9de903 | 2018-06-28 11:42:32 -0400 | [diff] [blame] | 32 | 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 Polyakov | 9e76f5d | 2018-06-18 17:21:33 -0400 | [diff] [blame] | 42 | |
Oleg Polyakov | 4d45436 | 2018-06-15 10:52:52 -0400 | [diff] [blame] | 43 | stage ('Start Provisioning Test') { |
| 44 | steps { |
| 45 | println 'Start Provisioning Test' |
Oleg Polyakov | d9de903 | 2018-06-28 11:42:32 -0400 | [diff] [blame] | 46 | 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 Polyakov | 4d45436 | 2018-06-15 10:52:52 -0400 | [diff] [blame] | 49 | } |
| 50 | } |
Oleg Polyakov | d9de903 | 2018-06-28 11:42:32 -0400 | [diff] [blame] | 51 | } |
Oleg Polyakov | 4d45436 | 2018-06-15 10:52:52 -0400 | [diff] [blame] | 52 | } |