Browse Source

change script

pull/79/head
Megha Mehta 4 years ago
committed by GitHub
parent
commit
278e029af1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      Jenkinsfile

9
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'
}
}
}

Loading…
Cancel
Save