ソースを参照

更新 'Jenkinsfile'

tags/小炒逻辑变更前
bpa 2年前
コミット
2e34877f32
1個のファイルの変更7行の追加3行の削除
  1. +7
    -3
      Jenkinsfile

+ 7
- 3
Jenkinsfile ファイルの表示

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


読み込み中…
キャンセル
保存