luhaowen 5 days ago
parent
commit
bb1918214f
3 changed files with 3 additions and 3 deletions
  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()