From 4be7a823a7b86764a91fb863fd96cdcf0c538a47 Mon Sep 17 00:00:00 2001 From: Artur Date: Sat, 26 Oct 2024 12:55:56 +0200 Subject: [PATCH] Restart all containers skip jenkins --- deploy-this/restart-docker.jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy-this/restart-docker.jenkinsfile b/deploy-this/restart-docker.jenkinsfile index ea3e378..58eae11 100755 --- a/deploy-this/restart-docker.jenkinsfile +++ b/deploy-this/restart-docker.jenkinsfile @@ -4,7 +4,7 @@ pipeline { stages{ stage('restart docker') { steps { - sh("docker restart \$(docker ps -q)"); + sh("docker ps -q | grep -v \$(docker ps -qf 'name=jenkins') | xargs docker restart"); } } }