I hereby claim:
- I am bhaku on github.
- I am kbak (https://keybase.io/kbak) on keybase.
- I have a public key ASAVE9QEoPtPHysp1ReMIF9_a0fUS3MiiiK7DsE_aGYsZgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| ################################################### | |
| ## | |
| ## Alertmanager YAML configuration for routing. | |
| ## | |
| ## Will route alerts with a code_owner label to the slack-code-owners receiver | |
| ## configured above, but will continue processing them to send to both a | |
| ## central Slack channel (slack-monitoring) and PagerDuty receivers | |
| ## (pd-warning and pd-critical) | |
| ## |
| import jenkins.model.* | |
| def matchedJobs = Jenkins.instance.items.findAll { job -> | |
| job.name =~ /my_regex_here/ | |
| } | |
| matchedJobs.each { job -> | |
| println job.name | |
| //job.delete() | |
| } |
| #!/usr/bin/env groovy | |
| /** | |
| * CONFIGURATION | |
| */ | |
| def private_token = "secret_token_from_gitlab" | |
| def repository = "group/repository-name" | |
| /* CONFIGURATION END */ | |
| def repository_name = repository.replace("/", "%2F"); |