修改路径

This commit is contained in:
weir 2021-07-25 19:43:31 +08:00
parent 03b52bfb2e
commit 25a82f07c7
2 changed files with 5 additions and 4 deletions

2
Jenkinsfile vendored
View File

@ -40,7 +40,7 @@ pipeline {
sh 'if [ ! -d "' + "${env.HOME}" + '/resources" ];then\n' +
' echo "配置文件不存在无需修改"\n' +
'else\n' +
' cp -rf /home/pi/resources/*.yaml ' + "${env.APP_NAME}" + '/src/main/resources\n' +
' cp -rf ' + "${env.HOME}" + '/resources/*.yaml ' + "${env.APP_NAME}" + '/src/main/resources\n' +
' echo "配置文件替换"\n' +
'fi'
sh 'mvn clean package -Dmaven.test.skip=true'

View File

@ -10,7 +10,8 @@ pipeline {
}
environment {
APP_NAME = 'yudao-admin-ui'
APP_NAME = 'yudao-admin'
APP_PACKAGE='yudao-admin-ui'
NGINX_WORKDIR = '/home/pi/mydata/nginx/html/'
}
@ -24,8 +25,8 @@ pipeline {
stage('构建') {
steps {
sh 'cnpm --prefix '+ "${env.APP_NAME}" +' install'
sh 'cnpm --prefix '+ "${env.APP_NAME}" +' run build:prod'
sh 'cnpm --prefix '+ "${env.APP_PACKAGE}" +' install'
sh 'cnpm --prefix '+ "${env.APP_PACKAGE}" +' run build:prod'
}
}