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'
|
stash includes: 'target/release/telegram-leetbot', name: 'app'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
stage('docker build') {
|
||||||
|
steps {
|
||||||
post {
|
|
||||||
success {
|
|
||||||
unstash 'app'
|
unstash 'app'
|
||||||
|
|
||||||
archiveArtifacts artifacts: 'target/debug/telegram-leetbot', fingerprint: true
|
|
||||||
|
|
||||||
echo 'Starting docker image build'
|
echo 'Starting docker image build'
|
||||||
script {
|
script {
|
||||||
docker.build("northcode/telegram-leetbot")
|
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