@@ -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,
def call(String webhook) {
- def info = gatherCommonInfo()
'START',
@@ -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()