Compare commits
1 Commits
de0844b41f
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b448e090fb |
12
jenkinsfile
12
jenkinsfile
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user