build: 尝试使用本地npmrc配置
This commit is contained in:
parent
b7b467954e
commit
63302677ce
|
@ -40,7 +40,7 @@ pipeline {
|
|||
stage('POM') {
|
||||
when { environment name: 'BUILD_PARENT', value: 'true' }
|
||||
steps {
|
||||
configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml')]) {
|
||||
configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml'), configFile(fileId: 'metersphere-npmrc', targetLocation: '.npmrc')]) {
|
||||
sh '''#!/bin/bash -xe
|
||||
export JAVA_HOME=/opt/jdk-11
|
||||
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
|
||||
|
@ -54,7 +54,7 @@ pipeline {
|
|||
stage('SDK') {
|
||||
when { environment name: 'BUILD_SDK', value: 'true' }
|
||||
steps {
|
||||
configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml')]) {
|
||||
configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml'), configFile(fileId: 'metersphere-npmrc', targetLocation: '.npmrc')]) {
|
||||
sh '''#!/bin/bash -xe
|
||||
export JAVA_HOME=/opt/jdk-11
|
||||
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
|
||||
|
@ -79,7 +79,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
steps {
|
||||
configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml')]) {
|
||||
configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml'), configFile(fileId: 'metersphere-npmrc', targetLocation: '.npmrc')]) {
|
||||
sh '''#!/bin/bash -xe
|
||||
export JAVA_HOME=/opt/jdk-11
|
||||
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
|
||||
|
|
Loading…
Reference in New Issue