Megha Mehta
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
9 deletions
-
Jenkinsfile
|
|
@ -4,16 +4,15 @@ 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& |
|
|
|
kubectl get pods -A |
|
|
|
argocd logout 127.0.0.1:8080 |
|
|
|
argocd login 127.0.0.1:8080 --insecure --username admin --password admin |
|
|
|
argocd app list |
|
|
|
""" |
|
|
|
withCredentials([usernamePassword(credentialsId: 'argocd-devops-lab', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { |
|
|
|
// sh""" |
|
|
|
sh 'kubectl port-forward svc/argocd-server -n argocd 8080:443&' |
|
|
|
sh 'argocd logout 127.0.0.1:8080' |
|
|
|
sh 'argocd login 127.0.0.1:8080 --insecure --username $USERNAME --password $PASSWORD' |
|
|
|
sh 'argocd app list' |
|
|
|
// """ |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|