Plugin for Drone CI to send information about builds to multiple sources.
To use this plugin, add the following step to your pipline
# Report all builds
- name: build-reporter
image: randomman552/drone-build-reporter
settings:
# Your settings here
variable:
from_secret: variable
when:
status:
- failure
- successThe above will trigger regardless of a build success or failure
To only trigger the pipeline on a failure, you can remove the success case from the condition as shown below
# Report failures only
- name: build-reporter
image: randomman552/drone-build-reporter
settings:
# Your settings here
variable:
from_secret: variable
when:
status:
- failureAll configuration options should be passed through the step settings as shown for the example above.
Values can be passed from secrets, or directly as strings. Care should be taken to use secrets where appropriate (API tokens, etc)
Global settings:
notify_mode- Controls when in the process the CI this plugin runsfinished- Notify at the conclusion of the CI process (default)started- Notify at the start of the CI process
Platform specific:
- Gotify
gotify_tokenthe token from the gotify instancegotify_urlUrl of the gotify instance, including scheme (e.g.https://gotify.example.com)
- Discord
discord_webhookThe webhook to send the report to