From cae58b73f2770b1db5a46b187b692f23d9bc844b Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Thu, 27 Oct 2022 14:33:35 +0800 Subject: [PATCH] build: add NPM_CONFIG_USERCONFIG --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 2654006eaa..c3aca82214 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,6 +47,7 @@ pipeline { 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 ''' @@ -61,6 +62,7 @@ pipeline { 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 @@ -86,6 +88,7 @@ pipeline { 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