| /* voltha-automated-build pipeline */ |
| /* no label, executor is determined by JJB */ |
| label "${params.executorNode}" |
| stage ('Cleanup workspace') { |
| sh 'rm -rf ./build ./component ./incubator ./onos-apps ./orchestration ./test ./.repo' |
| checkout(changelog: false, \ |
| scm: [$class: 'RepoScm', \ |
| manifestRepositoryUrl: "${params.manifestUrl}", \ |
| manifestBranch: "${params.manifestBranch}", \ |
| destinationDir: 'cord', \ |
| stage ('Bring up voltha dev vm') { |
| stage ('Remove the pre-created venv-linux') { |
| sh 'vagrant ssh -c "rm -rf /cord/incubator/voltha/venv-linux"' |
| sh 'vagrant ssh -c "cd /cord/incubator/voltha && source env.sh && make fetch-jenkins && make jenkins" voltha' } |
| stage ('Bring up voltha containers') { |
| sh 'vagrant ssh -c "cd /cord/incubator/voltha && source env.sh && docker-compose -f compose/docker-compose-docutests.yml up -d" voltha' } |
| stage ('Run Integration Tests') { |
| sh 'vagrant ssh -c "cd /cord/incubator/voltha && source env.sh && make jenkins-test" voltha' } |