Skip to content

Commit

Permalink
[DevOps] update jenkinsfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
fedml-alex committed Aug 31, 2023
1 parent 8efb8bd commit df645c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devops/JenkinsfileQuickBuild
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ pipeline {
credentialsId: env.DEV_KUBECONFIG_CREDENTIAL_ID,
variable: 'KUBECONFIG')
]) {
sh 'kubectl create secret docker-registry open-ecr-secret --docker-server=public.ecr.aws --docker-username=AWS --docker-password=$(/usr/local/bin/aws ecr-public get-login-password --region us-east-1) --namespace=fedml-devops-aggregator-dev'
sh 'kubectl create secret docker-registry open-ecr-secret --docker-server=public.ecr.aws --docker-username=AWS --docker-password=$(/usr/local/bin/aws ecr-public get-login-password --region us-east-1) --namespace=fedml-devops-aggregator-dev || true'

sh 'kubectl rollout restart -n $DEPLOY_NAMESPACE_DEV deployment/fedml-cloud-server'

Expand Down Expand Up @@ -381,7 +381,7 @@ pipeline {
credentialsId: env.PRODUCTION_KUBECONFIG_CREDENTIAL_ID,
variable: 'KUBECONFIG')
]) {
sh 'kubectl create secret docker-registry open-ecr-secret --docker-server=public.ecr.aws --docker-username=AWS --docker-password=$(/usr/local/bin/aws ecr-public get-login-password --region us-east-1) --namespace=fedml-devops-aggregator-release'
sh 'kubectl create secret docker-registry open-ecr-secret --docker-server=public.ecr.aws --docker-username=AWS --docker-password=$(/usr/local/bin/aws ecr-public get-login-password --region us-east-1) --namespace=fedml-devops-aggregator-release || true'

sh 'kubectl rollout restart -n $DEPLOY_NAMESPACE_PRODUCTION deployment/fedml-cloud-server'

Expand Down

0 comments on commit df645c0

Please sign in to comment.