diff --git a/Jenkinsfile b/Jenkinsfile index bf5ad821a..38789a064 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' diff --git a/yudao-admin-ui/Jenkinsfile b/yudao-admin-ui/Jenkinsfile index fec52131e..2736815dc 100644 --- a/yudao-admin-ui/Jenkinsfile +++ b/yudao-admin-ui/Jenkinsfile @@ -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' } }