업데이트 'Jenkinsfile'

This commit is contained in:
2023-03-22 16:17:05 +09:00
parent a8a0f28cef
commit 84fdb240f7

4
Jenkinsfile vendored
View File

@@ -32,7 +32,7 @@ podTemplate(
def namespace = props["namespace"]
stage("Get Source") {
git branch: 'master', credentialsId: GIT_CREDENTIALS, url: "http://mindol.synology.me:8418/kiz-space/eureka-server.git"
git branch: 'master', credentialsId: credentials('GIT_CREDENTIALS'), url: "http://mindol.synology.me:8418/kiz-space/eureka-server.git"
}
try {
@@ -45,7 +45,7 @@ podTemplate(
stage("Dockerize and Push") {
container("docker") {
docker.withRegistry("http://mindol.synology.me:60000/v2/_catalog/", REGISTRY_CREDENTIALS) {
docker.withRegistry("http://mindol.synology.me:60000/v2/_catalog/", credentials('REGISTRY_CREDENTIALS')) {
sh "docker build -f ./Dockerfile -t kiz/eureka:0.1 ."
sh "docker push kiz/eureka:0.1"
sh "docker tag kiz/eureka:0.1 kiz/eureka:latest"