Update jenkinsfile

This commit is contained in:
2025-11-20 18:15:41 +00:00
parent 714706532c
commit adc83b2d70

View File

@@ -54,13 +54,9 @@ pipeline {
stage('Deployment') {
steps {
sh '''
"=== Nettoyage des anciens conteneurs du projet compose ==="
CONTAINERS=$(docker ps -a --filter "label=com.docker.compose.project=${COMPOSE_PROJECT}" -q || true)
if [ -n "$CONTAINERS" ]; then
echo "Suppression des conteneurs : $CONTAINERS"
docker rm -f $CONTAINERS
else
"Aucun conteneur existant pour le projet ${COMPOSE_PROJECT}"
fi
echo "=== (Re)création de la stack MySQL + Spring + Angular ==="