proxy-nginx/deploy-this/restart-docker.jenkinsfile

14 lines
320 B
Plaintext
Executable File

pipeline {
agent any
stages {
stage('Restart containers') {
steps {
sh '''
echo "=== Restartowanie kontenerów (oprócz jenkins) ==="
docker ps --format "{{.Names}}" | grep -v jenkins | xargs -r docker restart
echo "Restart zakończony"
'''
}
}
}
}