Commit 887f9c36 authored by Khady Diagne's avatar Khady Diagne

Update Jenkinsfileargo

parent b6f08fab
pipeline { pipeline {
environment { environment {
imagename = "khadydiagne/odoo-app" // Nom de l'image Docker imagename = 'khadydiagne/odoo-app' // Nom de l'image Docker
registryCredential = 'dockerhub' // Identifiants Docker Hub stockés dans Jenkins registryCredential = 'dockerhub' // Identifiants Docker Hub stockés dans Jenkins
} }
...@@ -34,12 +34,12 @@ pipeline { ...@@ -34,12 +34,12 @@ pipeline {
} }
} }
} }
}
stage('ArgoCD Deployment') { stage('ArgoCD Deployment') {
steps { steps {
script { script {
bat 'kubectl apply -f argocd_deploy.yaml --validate=false ' // Appliquer le fichier YAML pour le déploiement avec ArgoCD
bat 'kubectl apply -f argocd_deploy.yaml --validate=false'
} }
} }
} }
...@@ -52,7 +52,6 @@ pipeline { ...@@ -52,7 +52,6 @@ pipeline {
bat 'kubectl get pv' bat 'kubectl get pv'
bat 'kubectl get pvc' bat 'kubectl get pvc'
bat 'kubectl get hpa' bat 'kubectl get hpa'
} }
} }
} }
...@@ -66,3 +65,4 @@ pipeline { ...@@ -66,3 +65,4 @@ pipeline {
echo 'Le pipeline a échoué.' echo 'Le pipeline a échoué.'
} }
} }
}
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