diff --git a/Jenkinsfile b/Jenkinsfile index 8450a43..56f701d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,6 +33,7 @@ pipeline { steps { sh """ sed 's|ogcore-php:static|${DOCKER_IDENTITY}|g; s|ogcore-nginx:static|${DOCKER_IDENTITY_NGINX}|g' ${DOCKER_COMPOSE_TEMPLATE} > ${DOCKER_COMPOSE_FILE} + cat ${DOCKER_COMPOSE_FILE} """ } } @@ -54,6 +55,11 @@ pipeline { """ } } + stage ("Stop containers") { + steps { + sh "docker compose -f ${DOCKER_COMPOSE_FILE} down" + } + } stage ("Delete Image") { steps { script {