diff --git a/Jenkinsfile b/Jenkinsfile index 2c7d3e3..1d64fc1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,9 +5,11 @@ 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&' - sh'argocd login 127.0.0.1:8080 --insecure --username ${USERNAME} --password ${PASSWORD}' - sh 'argocd app list' + sh""" + kubectl port-forward svc/argocd-server -n argocd 8080:443& + argocd login 127.0.0.1:8080 --insecure --username admin --password admin + argocd app list + """ } } }