From 5a4868b397e16c26e45ab3307bfe83ac5210c61a Mon Sep 17 00:00:00 2001 From: Duvan Rondon Date: Mon, 24 Feb 2025 16:10:17 -0500 Subject: [PATCH] Fixed name services of cloud run --- Jenkinsfile copy | 6 ++++-- service-nest.yml | 2 +- service-spring.yml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) 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: