mirror of
https://github.com/valitydev/image-service-erlang.git
synced 2024-11-06 08:15:21 +00:00
c8f1be2b1d
* Update to embedded-base:449d456df2efc79903b161cf9de7904ee4e6bb89 * Update Jenkinsfile to use dr2.rbkmoney.com
21 lines
510 B
Groovy
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' }
|
|
}
|
|
}
|
|
}
|