Commit 700bf002 authored by lijingang's avatar lijingang

fix

parent ca1e2f9b
...@@ -104,6 +104,7 @@ pipeline { ...@@ -104,6 +104,7 @@ pipeline {
else { else {
// 2. 抓取 Commit 信息(使用跨平台方式) // 2. 抓取 Commit 信息(使用跨平台方式)
def commitMsg = "" def commitMsg = ""
def branch = env.BRANCH_NAME ?: '' // 若 env.BRANCH_NAME 为 null,则转为空字符串
try { try {
commitMsg = runPowerShellWithOutput('git log -1 --pretty=%B') commitMsg = runPowerShellWithOutput('git log -1 --pretty=%B')
} catch (Exception e) { } catch (Exception e) {
...@@ -124,7 +125,6 @@ pipeline { ...@@ -124,7 +125,6 @@ pipeline {
actionType = "PRE_RELEASE" actionType = "PRE_RELEASE"
} }
// --- 优先级 4: 常规核心分支 --- // --- 优先级 4: 常规核心分支 ---
def branch = env.BRANCH_NAME ?: '' // 若 env.BRANCH_NAME 为 null,则转为空字符串
else if (branch == '' || branch == 'feat-report-zxh-bghd') { else if (branch == '' || branch == 'feat-report-zxh-bghd') {
actionType = "REGULAR_BUILD" actionType = "REGULAR_BUILD"
echo "🔍 检测到核心分支: ${env.BRANCH_NAME},执行常规构建..." echo "🔍 检测到核心分支: ${env.BRANCH_NAME},执行常规构建..."
......
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