diff --git a/chuanqi_server_jenkins b/chuanqi_server_jenkins new file mode 100644 index 0000000..4af47ca --- /dev/null +++ b/chuanqi_server_jenkins @@ -0,0 +1,19 @@ +pipeline { + agent any + stages { + stage('部署') { + steps { + echo 'Deploying...' + sh "cd /home/cq/data&&git pull" + } + } + } + post{ + success { + echo 'Deployment finished successfully.' + } + failure { + echo 'Deployment failed.' + } + } +}