luhaowen 1 周之前
父節點
當前提交
bb1918214f
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      vars/feishuNotify.groovy
  2. 1 1
      vars/feishuStart.groovy
  3. 1 1
      vars/gatherInfo.groovy

+ 1 - 1
vars/feishuNotify.groovy

@@ -1,5 +1,5 @@
 def call(String webhook, String status) {
-    def info = _gatherInfo()
+    def info = gatherInfo()
     new com.example.FeishuNotifier(this, webhook).send(
         status,
         env.JOB_NAME,

+ 1 - 1
vars/feishuStart.groovy

@@ -1,5 +1,5 @@
 def call(String webhook) {
-    def info = gatherCommonInfo()
+    def info = gatherInfo()
     new com.example.FeishuNotifier(this, webhook).send(
         'START',
         env.JOB_NAME,

+ 1 - 1
vars/_gatherInfo.groovy → vars/gatherInfo.groovy

@@ -1,4 +1,4 @@
-// 注意:文件必须以下划线开头,表示「内部辅助」,不会被当成 DSL 步骤
+// vars/gatherInfo.groovy
 def call() {
     def duration = currentBuild.durationString.replace(' and counting', '')
     def commitMsg  = sh(returnStdout: true, script: 'git log -1 --pretty=%B').trim()