修改路径
This commit is contained in:
parent
03b52bfb2e
commit
25a82f07c7
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -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'
|
||||
|
7
yudao-admin-ui/Jenkinsfile
vendored
7
yudao-admin-ui/Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user