forked from mindol1004/msa-kiz-app
업데이트 'Jenkinsfile'
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user