mirror of
https://github.com/valitydev/image-riak-base.git
synced 2024-11-06 02:05:19 +00:00
22 lines
695 B
Groovy
22 lines
695 B
Groovy
#!groovy
|
|
// -*- mode: groovy -*-
|
|
build("image-embedded", 'docker-host') {
|
|
checkoutRepo()
|
|
withGithubSshCredentials {
|
|
runStage('submodules') { sh 'make submodules' }
|
|
withCredentials(
|
|
[[$class: 'FileBinding', credentialsId: 'bakka-su-rbkmoney-all', variable: 'BAKKA_SU_PRIVKEY']]) {
|
|
runStage('repos') { sh 'make repos' }}}
|
|
try {
|
|
docker.withRegistry('https://dr2.rbkmoney.com/v2/', 'jenkins_harbor') {
|
|
runStage('build image') { sh 'make' }
|
|
runStage('test image') { sh 'make test' }
|
|
if (env.BRANCH_NAME == 'master') {
|
|
runStage('docker image push') { sh 'make push' }
|
|
}
|
|
}
|
|
} finally {
|
|
runStage('Clean up') { sh 'make clean' }
|
|
}
|
|
}
|