|
|
@@ -26,9 +26,9 @@ pipeline{ |
|
|
|
) |
|
|
|
|
|
|
|
choice( |
|
|
|
description: '分支名', |
|
|
|
name: 'branchName', |
|
|
|
choices: ['master'] |
|
|
|
description: '是否下载包', |
|
|
|
name: 'isDownloadPackage', |
|
|
|
choices: ['是','否'] |
|
|
|
) |
|
|
|
|
|
|
|
string( |
|
|
@@ -80,7 +80,11 @@ pipeline{ |
|
|
|
nodejs("nodejs") { |
|
|
|
|
|
|
|
} |
|
|
|
if(params.isDownloadPackage=='是') |
|
|
|
{ |
|
|
|
sh "npm install --unsafe-perm=true --allow-root" |
|
|
|
} |
|
|
|
|
|
|
|
sh "rm -rf ./dist/*" |
|
|
|
sh "npm run build" |
|
|
|
sh "docker build -t 10.2.1.24:10242/bpa/kitchenweb:${build_tag} ." |
|
|
|