Validate docker
This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@@ -24,6 +24,16 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
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') {
|
stage('Check for Changes') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
@@ -125,6 +135,7 @@ pipeline {
|
|||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
echo 'Services deployed successfully!'
|
echo 'Services deployed successfully!'
|
||||||
|
sh 'docker system prune -f'
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
echo 'Failed to deploy services. Check logs.'
|
echo 'Failed to deploy services. Check logs.'
|
||||||
|
|||||||
Reference in New Issue
Block a user