fix(ci): move docker build to post stage

This commit is contained in:
andreas 2019-05-13 21:37:46 +02:00
parent 575675007a
commit 9fd762f034

15
Jenkinsfile vendored
View File

@ -6,20 +6,17 @@ pipeline {
sh 'cargo build'
}
}
stage('docker') {
steps {
echo 'Starting docker image build'
script {
docker.build("northcode/telegram-leetbot")
}
}
}
}
post {
success {
archiveArtifacts artifacts: 'target/debug/telegram-leetbot', fingerprint: true
echo 'Starting docker image build'
script {
docker.build("northcode/telegram-leetbot")
}
}
}
}