Restart all containers skip jenkins

This commit is contained in:
Artur 2024-10-26 12:55:56 +02:00
parent 02039f29b2
commit 4be7a823a7
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ pipeline {
stages{ stages{
stage('restart docker') { stage('restart docker') {
steps { steps {
sh("docker restart \$(docker ps -q)"); sh("docker ps -q | grep -v \$(docker ps -qf 'name=jenkins') | xargs docker restart");
} }
} }
} }