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" ''' } } } }