Update jenkinsfile

This commit is contained in:
Vincent Guillet
2026-02-02 14:25:34 +00:00
parent de0844b41f
commit b448e090fb

View File

@@ -12,9 +12,9 @@ pipeline {
stages {
// Build & push images (toujours sur ct-home-dev)
// Build & push images (toujours sur vm-infra-dev)
stage('Build & Push Docker Images') {
agent { label 'ct-home-dev' }
agent { label 'vm-infra-dev' }
steps {
// 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') {
when {
branch 'dev'
}
agent { label 'ct-home-dev' }
agent { label 'vm-infra-dev' }
steps {
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') {
when {
branch 'main'
}
agent { label 'ct-home-projets' }
agent { label 'vm-infra-prod1' }
steps {
checkout scm