| 123456789101112131415 |
- #!/usr/bin/env groovy
- import com.example.FeishuNotifier
- def call(String webhookUrl, String status) {
- def duration = currentBuild.durationString.replace(' and counting', '')
- def notifier = new FeishuNotifier(this, webhookUrl)
- notifier.send(
- status,
- env.JOB_NAME,
- env.BUILD_NUMBER,
- env.BUILD_URL,
- duration
- )
- }
|