Commit 5945c585 authored by Khady Diagne's avatar Khady Diagne

Update Jenkinsfileargo

parent 14a6702d
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 = 'docker' // Identifiants Docker Hub stockés dans Jenkins
} }
agent any agent any
...@@ -35,11 +35,8 @@ pipeline { ...@@ -35,11 +35,8 @@ pipeline {
stage('ArgoCD Deployment') { stage('ArgoCD Deployment') {
steps { steps {
script { script {
try { sh 'kubectl apply -f argocd_deploy.yaml --validate=false'
bat 'kubectl apply -f argocd_deploy.yaml --validate=false'
} catch (Exception e) {
error "Deployment failed: ${e.message}"
}
} }
} }
} }
...@@ -47,10 +44,10 @@ pipeline { ...@@ -47,10 +44,10 @@ pipeline {
stage('Verify Deployment') { stage('Verify Deployment') {
steps { steps {
script { script {
bat 'kubectl get all -n default' sh 'kubectl get all -n default'
bat 'kubectl get pv' sh 'kubectl get pv'
bat 'kubectl get pvc' sh 'kubectl get pvc'
bat 'kubectl get hpa' sh 'kubectl get hpa'
} }
} }
} }
......
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