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