diff --git a/Jenkinsfile copy b/Jenkinsfile copy index 180e52e..aea3ea2 100644 --- a/Jenkinsfile copy +++ b/Jenkinsfile copy @@ -19,7 +19,9 @@ pipeline { stage('Authenticate') { steps { - sh 'gcloud auth activate-service-account --key-file="$GCLOUD_CREDS"' + withCredentials([file(credentialsId: 'gcloud-creds', variable: 'GCLOUD_CREDS')]) { + sh 'gcloud auth activate-service-account --key-file="$GCLOUD_CREDS"' + } } } @@ -56,7 +58,7 @@ pipeline { if (cloudRunUrlMatchNest) { env.CLOUD_RUN_NEST = cloudRunUrlMatchNest[0][1] } - if (cloudRunUrlMatchSpring) { + if (cloudRunUrlMatchLotes) { env.CLOUD_RUN_LOTES = cloudRunUrlMatchLotes[0][1] } } diff --git a/service-nest.yml b/service-nest.yml index f518ee2..1ed2973 100644 --- a/service-nest.yml +++ b/service-nest.yml @@ -1,7 +1,7 @@ apiVersion: serving.knative.dev/v1 kind: Service metadata: - name: cbii-jenkins + name: cbii-nest-jenkins namespace: siman-448015 spec: template: diff --git a/service-spring.yml b/service-spring.yml index 1e1dd07..3102a26 100644 --- a/service-spring.yml +++ b/service-spring.yml @@ -1,7 +1,7 @@ apiVersion: serving.knative.dev/v1 kind: Service metadata: - name: cbii-jenkins + name: cbii-lotes-jenkins namespace: siman-448015 spec: template: