build: add NPM_CONFIG_USERCONFIG

This commit is contained in:
liqiang-fit2cloud 2022-10-27 14:33:35 +08:00
parent 6ae0c40c12
commit cae58b73f2
1 changed files with 3 additions and 0 deletions

3
Jenkinsfile vendored
View File

@ -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