feishuStart.groovy 419 B

12345678910111213141516
  1. // vars/feishuStart.groovy
  2. def call(String webhook, String branch = null) {
  3. def info = gatherInfo(branch) // 把分支传进去
  4. new com.example.FeishuNotifier(this, webhook).send(
  5. 'START',
  6. env.JOB_NAME,
  7. env.BUILD_NUMBER,
  8. info.buildUrl,
  9. '0s',
  10. info.branch,
  11. info.commitMsg,
  12. info.author,
  13. info.commitTime,
  14. info.builder
  15. )
  16. }