// vars/feishuStart.groovy def call(String webhook, String branch = null) { def info = gatherInfo(branch) // 把分支传进去 new com.example.FeishuNotifier(this, webhook).send( 'START', env.JOB_NAME, env.BUILD_NUMBER, info.buildUrl, '0s', info.branch, info.commitMsg, info.author, info.commitTime, info.builder ) }