From fc82bfbf9df4b983bc85666c92911605f9daaab6 Mon Sep 17 00:00:00 2001 From: Megha Mehta <76773785+mm2020-ind@users.noreply.github.com> Date: Fri, 12 Mar 2021 17:01:22 +0530 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7055de2..0f95bcb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,8 +3,8 @@ node { properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '3', numToKeepStr: '7'))]) stage('Start argocd') { -// withKubeConfig(credentialsId: 'aws-eksctl-kubeconfig', serverUrl: '') { - withCredentials([usernamePassword(credentialsId: 'argocd-devops-lab', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { + 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 admin --password admin