| 123456789101112131415 | 
							- // var/feishuNotify.groovy
 
- def call(String webhook, String status, String branch = null) {
 
-     def info = gatherInfo(branch)          // 把分支传进去
 
-     new com.example.FeishuNotifier(this, webhook).send(
 
-         status,
 
-         env.JOB_NAME,
 
-         env.BUILD_NUMBER,
 
-         info.buildUrl,
 
-         info.duration,
 
-         info.branch,
 
-         info.commitMsg,
 
-         info.author,
 
-         info.commitTime
 
-     )
 
- }
 
 
  |