From 9ed36011427c521466a084bcbe400da468f730af Mon Sep 17 00:00:00 2001 From: Duvan Rondon Date: Mon, 24 Feb 2025 16:45:17 -0500 Subject: [PATCH] Update catch variable name project --- .gitignore | 1 + Jenkinsfile | 8 ++++++++ Jenkinsfile firm int | 8 ++++++++ Jenkinsfile firm out | 10 ++++++++-- service-api-gateway.yml | 2 +- service-firmador.yml | 2 +- service-nest.yml | 2 +- service-spring.yml | 2 +- service.yml | 2 +- 9 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7d934de --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +pub/ \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 5bfb5ee..b9ecc08 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,14 @@ pipeline { stages { + stage('Envs Project') { + steps { + sh ''' + sed -i "s|CLOUDSDK_CORE_PROJECT|${CLOUDSDK_CORE_PROJECT}|g" **.yml + ''' + } + } + stage('Clonar Repositorio') { steps { git credentialsId: 'token_gitea', diff --git a/Jenkinsfile firm int b/Jenkinsfile firm int index 0879bcf..40fab52 100644 --- a/Jenkinsfile firm int +++ b/Jenkinsfile firm int @@ -18,6 +18,14 @@ pipeline { } } + stage('Envs Project') { + steps { + sh ''' + sed -i "s|CLOUDSDK_CORE_PROJECT|${CLOUDSDK_CORE_PROJECT}|g" **.yml + ''' + } + } + stage('Authenticate') { steps { withCredentials([file(credentialsId: 'gcloud-creds', variable: 'GCLOUD_CREDS')]) { diff --git a/Jenkinsfile firm out b/Jenkinsfile firm out index aea3ea2..256f93d 100644 --- a/Jenkinsfile firm out +++ b/Jenkinsfile firm out @@ -17,6 +17,14 @@ pipeline { } } + stage('Envs Project') { + steps { + sh ''' + sed -i "s|CLOUDSDK_CORE_PROJECT|${CLOUDSDK_CORE_PROJECT}|g" **.yml + ''' + } + } + stage('Authenticate') { steps { withCredentials([file(credentialsId: 'gcloud-creds', variable: 'GCLOUD_CREDS')]) { @@ -69,8 +77,6 @@ pipeline { steps { sh ''' sed -i "s|SERVICE_NEST_URL|${CLOUD_RUN_NEST}|g" **.yml - sed -i "s|SERVICE_LOTES_URL|${CLOUD_RUN_LOTES}|g" **.yml - cat service-api-gateway.yml ''' } } diff --git a/service-api-gateway.yml b/service-api-gateway.yml index 2165bbd..82eb146 100644 --- a/service-api-gateway.yml +++ b/service-api-gateway.yml @@ -2,7 +2,7 @@ apiVersion: serving.knative.dev/v1 kind: Service metadata: name: cbii-apigateway-jenkins - namespace: siman-448015 + namespace: CLOUDSDK_CORE_PROJECT spec: template: spec: diff --git a/service-firmador.yml b/service-firmador.yml index 24d971b..6fcf202 100644 --- a/service-firmador.yml +++ b/service-firmador.yml @@ -2,7 +2,7 @@ apiVersion: serving.knative.dev/v1 kind: Service metadata: name: cbii-firmador-jenkins - namespace: siman-448015 + namespace: CLOUDSDK_CORE_PROJECT spec: template: spec: diff --git a/service-nest.yml b/service-nest.yml index 7c970e9..d82a25c 100644 --- a/service-nest.yml +++ b/service-nest.yml @@ -2,7 +2,7 @@ apiVersion: serving.knative.dev/v1 kind: Service metadata: name: cbii-nest-jenkins - namespace: siman-448015 + namespace: CLOUDSDK_CORE_PROJECT spec: template: spec: diff --git a/service-spring.yml b/service-spring.yml index 017b29e..603ffe4 100644 --- a/service-spring.yml +++ b/service-spring.yml @@ -2,7 +2,7 @@ apiVersion: serving.knative.dev/v1 kind: Service metadata: name: cbii-lotes-jenkins - namespace: siman-448015 + namespace: CLOUDSDK_CORE_PROJECT spec: template: spec: diff --git a/service.yml b/service.yml index 42db205..01667fc 100644 --- a/service.yml +++ b/service.yml @@ -2,7 +2,7 @@ apiVersion: serving.knative.dev/v1 kind: Service metadata: name: cbii-jenkins - namespace: siman-448015 + namespace: CLOUDSDK_CORE_PROJECT spec: template: spec: