feishuNotify.groovy 334 B

1234567891011121314
  1. def call(String webhook, String status) {
  2. def info = _gatherInfo()
  3. new com.example.FeishuNotifier(this, webhook).send(
  4. status,
  5. env.JOB_NAME,
  6. env.BUILD_NUMBER,
  7. info.buildUrl,
  8. info.duration,
  9. info.branch,
  10. info.commitMsg,
  11. info.author,
  12. info.commitTime
  13. )
  14. }