Browse Source

update Jenkins creds

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

6
Jenkinsfile

@ -4,7 +4,7 @@ node {
} }
stage('Start argocd') { stage('Start argocd') {
withKubeConfig(credentialsId: 'eksctl-kubeconfig', serverUrl: '') { withKubeConfig(credentialsId: 'aws-eksctl-kubeconfig', serverUrl: '') {
// sh 'kubectl get all' // sh 'kubectl get all'
sh 'kubectl port-forward svc/argocd-server -n argocd 8080:443&' sh 'kubectl port-forward svc/argocd-server -n argocd 8080:443&'
// sh 'argocd login 127.0.0.1:8080' // sh 'argocd login 127.0.0.1:8080'
@ -14,7 +14,7 @@ node {
} }
stage('Create app') { stage('Create app') {
withKubeConfig(credentialsId: 'eksctl-kubeconfig', serverUrl: '') { withKubeConfig(credentialsId: 'aws-eksctl-kubeconfig', serverUrl: '') {
sh """ sh """
argocd app create prod-kustomize-guestbook \ argocd app create prod-kustomize-guestbook \
--repo https://github.com/radtac-craft/argocd-example-apps.git \ --repo https://github.com/radtac-craft/argocd-example-apps.git \
@ -28,7 +28,7 @@ node {
} }
stage('Verify app') { stage('Verify app') {
withKubeConfig(credentialsId: 'eksctl-kubeconfig', serverUrl: '') { withKubeConfig(credentialsId: 'aws-eksctl-kubeconfig', serverUrl: '') {
sh 'argocd app list' sh 'argocd app list'
} }
} }

Loading…
Cancel
Save