From e4e6ef39f40a1af57fb5e0177c0fb87d931ff425 Mon Sep 17 00:00:00 2001 From: Megha Mehta <76773785+mm2020-ind@users.noreply.github.com> Date: Sat, 13 Mar 2021 02:16:22 +0530 Subject: [PATCH] update BRANCH_NAME --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 40b07ff..f97d38b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,14 +23,14 @@ node { stage('Create app') { withKubeConfig(credentialsId: 'aws-eksctl-kubeconfig', serverUrl: '') { sh """ - argocd app create ${env.BRANCHNAME}-kustomize-guestbook \ + argocd app create ${env.BRANCH_NAME}-kustomize-guestbook \ --repo https://github.com/radtac-craft/argocd-example-apps.git \ - --path kustomize-guestbook/overlays/${env.BRANCHNAME} \ + --path kustomize-guestbook/overlays/${env.BRANCH_NAME} \ --dest-server https://kubernetes.default.svc \ - --dest-namespace ${env.BRANCHNAME}-kustomize-guestbook + --dest-namespace ${env.BRANCH_NAME}-kustomize-guestbook """ - sh 'argocd app sync ${env.BRANCHNAME}-kustomize-guestbook' - sh 'argocd app wait ${env.BRANCHNAME}-kustomize-guestbook --sync' + sh 'argocd app sync ${env.BRANCH_NAME}-kustomize-guestbook' + sh 'argocd app wait ${env.BRANCH_NAME}-kustomize-guestbook --sync' } }