build: remove local npmrc.
This commit is contained in:
parent
cae58b73f2
commit
a6686528b5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue