storj/Jenkinsfile

44 lines
711 B
Plaintext
Raw Normal View History

2018-04-25 19:04:12 +01:00
node('node') {
try {
stage('Checkout') {
checkout scm
}
2018-04-25 19:04:12 +01:00
stage('Build Images') {
sh 'make test-docker images'
}
2018-04-25 19:04:12 +01:00
stage('Deploy') {
if (env.BRANCH_NAME != 'master') {
echo 'Skipping deploy stage'
return
}
sh 'make push-images'
}
2018-04-25 19:04:12 +01:00
}
catch (err) {
currentBuild.result = "FAILURE"
/*
mail body: "project build error is here: ${env.BUILD_URL}" ,
from: 'build@storj.io',
replyTo: 'build@storj.io',
subject: 'project build failed',
to: "${env.CHANGE_AUTHOR_EMAIL}"
throw err
*/
}
finally {
stage('Cleanup') {
sh 'make test-docker-clean clean-images'
deleteDir()
}
2018-04-25 19:04:12 +01:00
}
}