업데이트 'Jenkinsfile'

This commit is contained in:
2023-03-23 15:49:39 +09:00
parent 7a8a0e2b86
commit 11663f7208

7
Jenkinsfile vendored
View File

@@ -44,15 +44,22 @@ podTemplate(
*/ */
stage("Dockerize and Push") { stage("Dockerize and Push") {
sh 'echo 1111'
container("docker") { container("docker") {
sh 'echo 2222'
def dockerImage = docker.build "${image}:${tag}" def dockerImage = docker.build "${image}:${tag}"
sh 'echo 3333'
docker.withRegistry("https://10.43.250.34:5000/v2/", 'REGISTRY_CREDENTIALS') { docker.withRegistry("https://10.43.250.34:5000/v2/", 'REGISTRY_CREDENTIALS') {
sh 'echo 4444'
dockerImage.push('latest') dockerImage.push('latest')
sh 'echo 5555'
} }
} }
} }
sh 'echo 6666'
} catch(e) { } catch(e) {
sh 'echo e'
currentBuild.result = "FAILED" currentBuild.result = "FAILED"
} }
} }