Browse Source

更新 'Jenkinsfile'

tags/小炒逻辑变更前
bpa 2 years ago
parent
commit
2e34877f32
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      Jenkinsfile

+ 7
- 3
Jenkinsfile View File

@@ -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} ."


Loading…
Cancel
Save