From a6686528b59a7e7dbf93942361b6728f806c7bf5 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Thu, 27 Oct 2022 14:54:43 +0800 Subject: [PATCH] build: remove local npmrc. --- Jenkinsfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c3aca82214..446019c9ec 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,12 +42,11 @@ pipeline { stage('POM') { when { environment name: 'BUILD_PARENT', value: 'true' } steps { - configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml'), configFile(fileId: 'metersphere-npmrc', targetLocation: '.npmrc')]) { + configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml')]) { sh '''#!/bin/bash -xe export JAVA_HOME=/opt/jdk-11 export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$PATH - export NPM_CONFIG_USERCONFIG=`pwd`/.npmrc java -version ./mvnw install -N -Drevision=${REVISION} --settings ./settings.xml ''' @@ -57,12 +56,11 @@ pipeline { stage('SDK') { when { environment name: 'BUILD_SDK', value: 'true' } steps { - configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml'), configFile(fileId: 'metersphere-npmrc', targetLocation: '.npmrc')]) { + configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml')]) { sh '''#!/bin/bash -xe export JAVA_HOME=/opt/jdk-11 export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$PATH - export NPM_CONFIG_USERCONFIG=`pwd`/.npmrc java -version ./mvnw install -N -Drevision=${REVISION} --settings ./settings.xml ./mvnw clean install -Drevision=${REVISION} -pl framework,framework/sdk-parent,framework/sdk-parent/domain,framework/sdk-parent/sdk,framework/sdk-parent/xpack-interface --settings ./settings.xml @@ -83,12 +81,11 @@ pipeline { } } steps { - configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml'), configFile(fileId: 'metersphere-npmrc', targetLocation: '.npmrc')]) { + configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml')]) { sh '''#!/bin/bash -xe export JAVA_HOME=/opt/jdk-11 export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$PATH - export NPM_CONFIG_USERCONFIG=`pwd`/.npmrc java -version ./mvnw clean package -Drevision=${REVISION} --settings ./settings.xml