Validate docker
This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@@ -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.'
|
||||
|
||||
Reference in New Issue
Block a user