feat(ci): move docker build to its own step
This commit is contained in:
parent
8a120edfe6
commit
4bdfde581d
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -13,14 +13,10 @@ pipeline {
|
||||
stash includes: 'target/release/telegram-leetbot', name: 'app'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
success {
|
||||
stage('docker build') {
|
||||
steps {
|
||||
unstash 'app'
|
||||
|
||||
archiveArtifacts artifacts: 'target/debug/telegram-leetbot', fingerprint: true
|
||||
|
||||
echo 'Starting docker image build'
|
||||
script {
|
||||
docker.build("northcode/telegram-leetbot")
|
||||
@ -28,3 +24,12 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
success {
|
||||
unstash 'app'
|
||||
|
||||
archiveArtifacts artifacts: 'target/debug/telegram-leetbot', fingerprint: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user