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