pipeline { agent any stages{ stage('restart docker') { steps { sh("docker restart \$(docker ps -q)"); } } } }