build: mvn打包前先安装前端依赖
This commit is contained in:
parent
11bb0cf5a4
commit
569e86b0ce
|
@ -13,6 +13,9 @@ pipeline {
|
||||||
stage('Build/Test') {
|
stage('Build/Test') {
|
||||||
steps {
|
steps {
|
||||||
configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml')]) {
|
configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml')]) {
|
||||||
|
sh "cd frontend"
|
||||||
|
sh "yarn install"
|
||||||
|
sh "cd .."
|
||||||
sh "mvn clean package --settings ./settings.xml"
|
sh "mvn clean package --settings ./settings.xml"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue