From a23ffc792621397d90d0fedd27dcf369eb0f088c Mon Sep 17 00:00:00 2001 From: newrain001 Date: Thu, 8 Aug 2024 15:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'Jenkinsfile-host'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile-host | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile-host b/Jenkinsfile-host index bd80b0b..367fdc3 100644 --- a/Jenkinsfile-host +++ b/Jenkinsfile-host @@ -18,18 +18,16 @@ pipeline { stages { stage('后端打包') { steps { - withCredentials([usernamePassword(credentialsId: "${env.NEXUS_CREDENTIALS_ID}", usernameVariable: 'NEXUS_USERNAME', passwordVariable: 'NEXUS_PASSWORD')]) { - withDockerContainer(args: '-v /root/.m2:/root/.m2', image: 'maven:3.8.8-sapmachine-11') { + withDockerContainer(image: 'maven:3.8.8-sapmachine-11') { sh """ mvn package """ - } } } } stage('前端打包') { steps { - withDockerContainer(args: '-e HOME=/home/jenkins', image: 'node:18.20.3-alpine3.20') { + withDockerContainer(image: 'node:18.20.3-alpine3.20') { sh """ cd ruoyi-ui npm install --cache .npm --registry http://registry.npmmirror.com