Commit 1686c730 authored by Mariama Tambedou's avatar Mariama Tambedou

jenkinsfile dock

parent 16a2d30e
...@@ -37,6 +37,16 @@ pipeline { ...@@ -37,6 +37,16 @@ pipeline {
} }
} }
stage('Deploy to ArgoCD') { stage('Deploy to ArgoCD') {
steps {
script {
bat """
argocd app sync demo-app --kubeconfig %KUBECONFIG%
"""
}
}
}
/*stage('Deploy to ArgoCD') {
steps { steps {
script { script {
withCredentials([file(credentialsId: 'Kubeconfig', variable: 'KUBECONFIG')]) { withCredentials([file(credentialsId: 'Kubeconfig', variable: 'KUBECONFIG')]) {
...@@ -50,7 +60,7 @@ pipeline { ...@@ -50,7 +60,7 @@ pipeline {
} }
} }
} }
} }*/
post { post {
always { always {
echo "Pipeline complete." echo "Pipeline complete."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment