diff --git a/Jenkinsfile b/Jenkinsfile index 67c9aa2..04ebb68 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,6 +24,16 @@ pipeline { } stages { + stage('Validate Docker Connection') { + steps { + script { + echo "Validando conexão com Docker remoto: ${DOCKER_HOST}" + // Testa a conexão com o Docker remoto + sh 'docker info' + } + } + } + stage('Check for Changes') { steps { script { @@ -125,6 +135,7 @@ pipeline { post { success { echo 'Services deployed successfully!' + sh 'docker system prune -f' } failure { echo 'Failed to deploy services. Check logs.'