blob: 855036527c303e02f860d9532c14ef4d9a49ad96 [file] [log] [blame]
node('build') {
stage 'Checkout cord repo'
checkout([$class: 'RepoScm', currentBranch: true, manifestRepositoryUrl: 'https://gerrit.opencord.org/manifest', quiet: true])
dir ('incubator/voltha') {
try {
stage 'Bring up voltha dev vm'
sh 'vagrant up voltha'
stage 'Build voltha'
sh 'vagrant ssh -c "cd /voltha && source env.sh && make fetch && make" voltha'
stage 'Bring up voltha containers'
sh 'vagrant ssh -c "cd /voltha && source env.sh && docker-compose -f compose/docker-compose-system-test.yml up -d" voltha'
currentBuild.result = 'SUCCESS'
} catch (err) {
currentBuild.result = 'FAILURE'
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'cord-dev@opencord.org', sendToIndividuals: false])
} finally {
sh 'vagrant destroy -f voltha'
}
echo "RESULT: ${currentBuild.result}"
}
}