Commit a2024771 authored by 董国亮's avatar 董国亮

设置私仓,编译速度

parent 32913797
...@@ -19,7 +19,7 @@ pipeline { ...@@ -19,7 +19,7 @@ pipeline {
} }
stage('下载npm包') { stage('下载npm包') {
steps { steps {
sh 'cd build-tools && npm i' sh 'cd build-tools && npm i --registry http://10.102.1.182:58081/repository/npm-all/'
} }
} }
stage('打包构建') { stage('打包构建') {
......
...@@ -8,7 +8,7 @@ let system = process.argv.splice(2); ...@@ -8,7 +8,7 @@ let system = process.argv.splice(2);
async function build(key) { async function build(key) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const command = `cd ../${key} && npm i && npm run build`; const command = `cd ../${key} && npm i --registry http://10.102.1.182:58081/repository/npm-all/ && npm run build`;
console.log(chalk.yellow(`开始构建子系统${key},执行:${command}`)); console.log(chalk.yellow(`开始构建子系统${key},执行:${command}`));
shell.exec( shell.exec(
command, command,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment