image-service-erlang/Jenkinsfile
niku64 c8f1be2b1d
Update to embedded-base:449d456df2efc79903b161cf9de7904ee4e6bb89 (#6)
* Update to embedded-base:449d456df2efc79903b161cf9de7904ee4e6bb89
* Update Jenkinsfile to use dr2.rbkmoney.com
2019-03-20 13:42:28 +03:00

21 lines
510 B
Groovy

#!groovy
// -*- mode: groovy -*-
build('image-service-erlang', 'docker-host') {
checkoutRepo()
withGithubSshCredentials {
runStage('submodules') {
sh 'make submodules'
}
try {
docker.withRegistry('https://dr2.rbkmoney.com/v2/', 'jenkins_harbor') {
runStage('build image') { sh 'make' }
if (env.BRANCH_NAME == 'master') {
runStage('push image') { sh 'make push' }
}
}
} finally {
runStage('Clean up') { sh 'make clean' }
}
}
}