forked from mindol1004/msa-kiz-app
업데이트 'Jenkinsfile'
This commit is contained in:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -47,11 +47,12 @@ podTemplate(
|
|||||||
sh 'echo 1111'
|
sh 'echo 1111'
|
||||||
container("docker") {
|
container("docker") {
|
||||||
sh 'echo 2222'
|
sh 'echo 2222'
|
||||||
def dockerImage = docker.build "${image}:${tag}"
|
|
||||||
sh 'echo 3333'
|
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'
|
sh 'echo 4444'
|
||||||
dockerImage.push('latest')
|
def dockerImage = docker.build("${image}:${tag}", './')
|
||||||
|
dockerImage.push()
|
||||||
|
dockerImage.push('latest')
|
||||||
sh 'echo 5555'
|
sh 'echo 5555'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -59,7 +60,7 @@ podTemplate(
|
|||||||
sh 'echo 6666'
|
sh 'echo 6666'
|
||||||
|
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
sh 'echo e'
|
echo e.getMessage()
|
||||||
currentBuild.result = "FAILED"
|
currentBuild.result = "FAILED"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user