Update vars/notifyLark.groovy
This commit is contained in:
@@ -35,6 +35,7 @@ def call(Map args = [:]) {
|
|||||||
def publishEnvs = args.publishEnvs ?: 'production'
|
def publishEnvs = args.publishEnvs ?: 'production'
|
||||||
def branchName = args.branchName ?: (env.BRANCH_NAME ?: 'unknown')
|
def branchName = args.branchName ?: (env.BRANCH_NAME ?: 'unknown')
|
||||||
def webhookUrl = args.webhookUrl ?: env.XSH_FEISHU_WEBHOOK
|
def webhookUrl = args.webhookUrl ?: env.XSH_FEISHU_WEBHOOK
|
||||||
|
def buildVersion = args.buildVersion ?: 'unknown'
|
||||||
|
|
||||||
// ===== Jenkins 内建上下文 =====
|
// ===== Jenkins 内建上下文 =====
|
||||||
def buildStatus = currentBuild.currentResult ?: 'UNKNOWN'
|
def buildStatus = currentBuild.currentResult ?: 'UNKNOWN'
|
||||||
@@ -77,11 +78,12 @@ def call(Map args = [:]) {
|
|||||||
type: 'template',
|
type: 'template',
|
||||||
data: [
|
data: [
|
||||||
template_id: 'AAq2iv39m3lv5',
|
template_id: 'AAq2iv39m3lv5',
|
||||||
template_version_name: '1.0.6',
|
template_version_name: '1.0.7',
|
||||||
template_variable: [
|
template_variable: [
|
||||||
build_title : jobName,
|
build_title : jobName,
|
||||||
status_tag : statusTag,
|
status_tag : statusTag,
|
||||||
build_number: buildNumber,
|
build_number: buildNumber,
|
||||||
|
build_version: buildVersion,
|
||||||
publish_envs: publishEnvs,
|
publish_envs: publishEnvs,
|
||||||
commit_diff : commitDiff,
|
commit_diff : commitDiff,
|
||||||
build_branch: branchName,
|
build_branch: branchName,
|
||||||
|
|||||||
Reference in New Issue
Block a user