diff --git a/Jenkinsfile b/Jenkinsfile index b9c101f..f38f0bb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,11 +54,6 @@ pipeline { """ } } - stage ("Stop containers") { - steps { - sh "docker compose -f ${DOCKER_COMPOSE_FILE} down" - } - } stage('Tests') { steps { // Run tests @@ -71,6 +66,7 @@ pipeline { stage ("Delete Image") { steps { script { + sh "docker compose -f ${DOCKER_COMPOSE_FILE} down" sh "docker rmi ${DOCKER_IDENTITY}" sh "docker rmi ${DOCKER_IDENTITY_NGINX}" }