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

Update Jenkinsfileargo

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