Update jenkinsfile

This commit is contained in:
Vincent Guillet
2026-02-02 14:26:14 +00:00
parent 00208f08c9
commit 59650ddada

View File

@@ -12,9 +12,9 @@ pipeline {
stages { stages {
// Build & push images (toujours sur ct-home-dev) // Build & push images (toujours sur vm-infra-dev)
stage('Build & Push Docker Images') { stage('Build & Push Docker Images') {
agent { label 'ct-home-dev' } agent { label 'vm-infra-dev' }
steps { steps {
// Multi-branch friendly : Jenkins fait le checkout de la branche courante // Multi-branch friendly : Jenkins fait le checkout de la branche courante
@@ -56,12 +56,12 @@ pipeline {
} }
} }
// Déploiement DEV (ct-home-dev, branche dev) // Déploiement DEV (vm-infra-dev, branche dev)
stage('Deploy DEV') { stage('Deploy DEV') {
when { when {
branch 'dev' branch 'dev'
} }
agent { label 'ct-home-dev' } agent { label 'vm-infra-dev' }
steps { steps {
checkout scm checkout scm
@@ -87,12 +87,12 @@ pipeline {
} }
} }
// Déploiement PROD (ct-home-projets, branche main) // Déploiement PROD (vm-infra-prod1, branche main)
stage('Deploy PROD') { stage('Deploy PROD') {
when { when {
branch 'main' branch 'main'
} }
agent { label 'ct-home-projets' } agent { label 'vm-infra-prod1' }
steps { steps {
checkout scm checkout scm