Commit 24c72333 authored by lijingang's avatar lijingang

[deploy]

parent 700bf002
...@@ -105,6 +105,7 @@ pipeline { ...@@ -105,6 +105,7 @@ pipeline {
// 2. 抓取 Commit 信息(使用跨平台方式) // 2. 抓取 Commit 信息(使用跨平台方式)
def commitMsg = "" def commitMsg = ""
def branch = env.BRANCH_NAME ?: '' // 若 env.BRANCH_NAME 为 null,则转为空字符串 def branch = env.BRANCH_NAME ?: '' // 若 env.BRANCH_NAME 为 null,则转为空字符串
echo "当前分支: ${branch}"
try { try {
commitMsg = runPowerShellWithOutput('git log -1 --pretty=%B') commitMsg = runPowerShellWithOutput('git log -1 --pretty=%B')
} catch (Exception e) { } catch (Exception e) {
......
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