From 220e49cfb4e1f8ae6baf638e89bc80e58c865bc1 Mon Sep 17 00:00:00 2001 From: panjunjie <46790855@qq.com> Date: Sun, 10 Aug 2025 21:44:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改 Jenkins 的部署配置 --- Jenkinsfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e26a5dc..4a49a54 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,8 +14,8 @@ pipeline { stage('检查Node.js版本') { steps { - sh 'node -v' // 验证Node.js版本,应输出v22.18.0 - sh 'npm -v' // 验证npm版本,应输出对应版本(如v10.9.3) + sh 'node -v' + sh 'npm -v' } } @@ -25,7 +25,6 @@ pipeline { rm -rf node_modules package-lock.json npm config set registry https://registry.npmmirror.com npm install - # 确保postcss插件兼容 npm install postcss-px-to-viewport-8-plugin@1.1.3 --save-dev ''' } @@ -39,9 +38,7 @@ pipeline { stage('部署项目') { steps { - // 这里根据实际情况修改部署命令 sh ''' - # 将dist目录拷贝到Nginx或其他Web服务器 rm -rf /data/nginx/www/fafamall/demo/* cp -r dist/* /data/nginx/www/fafamall/demo// '''