From 826b867ee903e4e80fe5d57020b27dda9272409c Mon Sep 17 00:00:00 2001 From: xiaozhou233 Date: Sun, 9 Aug 2026 21:34:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20Jenkinsfile?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E9=83=A8=E7=BD=B2=E9=98=B6=E6=AE=B5?= =?UTF-8?q?=E5=92=8C=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 957e94e..5ba2b69 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,11 @@ pipeline { nodejs 'nodejs' } + environment { + // Deployment target directory + DEPLOY_DIR = '/var/lib/1panel/www/sites/workstation.xiaozhou233.cn/index/' + } + options { timestamps() disableConcurrentBuilds() @@ -51,6 +56,20 @@ pipeline { } } + stage('Deploy') { + steps { + sh ''' + echo "Deploying to ${DEPLOY_DIR}" + + mkdir -p ${DEPLOY_DIR} + + rsync -av --delete dashboard/dist/ ${DEPLOY_DIR}/ + + echo "Deploy completed" + ''' + } + } + } post {