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
5 additions and
4 deletions
-
Jenkinsfile
|
@ -4,12 +4,13 @@ node { |
|
|
// sh 'kubectl get all' |
|
|
// sh 'kubectl get all' |
|
|
sh""" |
|
|
sh""" |
|
|
kubectl port-forward svc/argocd-server -n argocd 8080:443& |
|
|
kubectl port-forward svc/argocd-server -n argocd 8080:443& |
|
|
argocd login 127.0.0.1:8080 --insecure --username admin --password admin |
|
|
|
|
|
|
|
|
withCredentials([usernamePassword(credentialsId: 'argocd-devops-lab', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { |
|
|
|
|
|
sh 'argocd login 127.0.0.1:8080 --insecure --username $USERNAME --password $PASSWORD' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
argocd app list |
|
|
argocd app list |
|
|
""" |
|
|
""" |
|
|
// sh 'kubectl port-forward svc/argocd-server -n argocd 8080:443&' |
|
|
|
|
|
// sh 'argocd login 127.0.0.1:8080 --insecure --username admin --password admin' |
|
|
|
|
|
// sh 'argocd app list' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|