pipeline { agent any stages { stage('部署') { steps { echo 'Deploying...' sh "cd /home/cq/data&&git pull" sh "cd /home/cq/data&&docker compose restart" } } } post{ success { echo 'Deployment finished successfully.' } failure { echo 'Deployment failed.' } } }