diff --git a/jenkinsfile b/jenkinsfile index 209ed53..485c1ab 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -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 ==="