the-tip-top-backend/Jenkinsfile
wkadmin 1058efc409
All checks were successful
the-tip-top-backend/pipeline/head This commit looks good
Add Jenkinsfile for CI/CD pipeline
2025-10-17 12:20:11 +00:00

32 lines
511 B
Groovy

pipeline {
agent any
environment {
COMPOSE_DIR = '/srv/devops/the-tip-top'
SERVICE = 'backend'
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Build & Deploy') {
steps {
sh """
cd ${COMPOSE_DIR}
docker compose up -d ${SERVICE}
"""
}
}
}
post {
success {
echo "✅ Backend déployé avec succès."
}
failure {
echo "❌ Échec du déploiement du backend."
}
}
}