fix(ci): move docker build to post stage
This commit is contained in:
parent
575675007a
commit
9fd762f034
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -6,20 +6,17 @@ pipeline {
|
|||||||
sh 'cargo build'
|
sh 'cargo build'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('docker') {
|
|
||||||
steps {
|
|
||||||
echo 'Starting docker image build'
|
|
||||||
|
|
||||||
script {
|
|
||||||
docker.build("northcode/telegram-leetbot")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
archiveArtifacts artifacts: 'target/debug/telegram-leetbot', fingerprint: true
|
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