From 278e029af1d65a466532e092b1ccb38769947442 Mon Sep 17 00:00:00 2001 From: Megha Mehta <76773785+mm2020-ind@users.noreply.github.com> Date: Fri, 12 Mar 2021 16:07:59 +0530 Subject: [PATCH] change script --- Jenkinsfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fa9eed9..2c7d3e3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,12 +5,9 @@ node { stage('Start argocd') { withKubeConfig(credentialsId: 'aws-eksctl-kubeconfig', serverUrl: '') { withCredentials([usernamePassword(credentialsId: 'argocd-devops-lab', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { - - sh""" - kubectl port-forward svc/argocd-server -n argocd 8080:443& - argocd login 127.0.0.1:8080 --insecure --username ${USERNAME} --password \${PASSWORD} - argocd app list - """ + sh 'kubectl port-forward svc/argocd-server -n argocd 8080:443&' + sh'argocd login 127.0.0.1:8080 --insecure --username ${USERNAME} --password ${PASSWORD}' + sh 'argocd app list' } } }