https://github.com/milewski/drone-rocket
Drone plugin for sending Rocket.Chat notifications.
https://github.com/milewski/drone-rocket
drone-plugin rocketchat webhook
Last synced: 3 months ago
JSON representation
Drone plugin for sending Rocket.Chat notifications.
- Host: GitHub
- URL: https://github.com/milewski/drone-rocket
- Owner: milewski
- License: mit
- Created: 2019-01-19T11:53:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-29T11:44:47.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T17:23:51.686Z (3 months ago)
- Topics: drone-plugin, rocketchat, webhook
- Language: TypeScript
- Homepage:
- Size: 13.7 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-rocket
[](https://hub.docker.com/r/rmilewski/drone-rocket)
[](https://hub.docker.com/r/rmilewski/drone-rocket)
[](LICENSE)Basic `.drone.yml` example
```yaml
kind: pipeline
name: defaultsteps:
- name: notification
image: rmilewski/drone-rocket:latest
when:
status: [ success, failure ]
settings:
webhook:
from_secret: rocket_chat_webhook
channel: dev
username: DroneCI
color:
- value: green
when:
DRONE_BUILD_STATUS: success
- value: red
when:
DRONE_BUILD_STATUS: failure
message:
- value: "Build: ${DRONE_BUILD_NUMBER} succeeded. Good job."
when:
DRONE_BUILD_STATUS: success
- value: "Build: ${DRONE_BUILD_NUMBER} failed. Fix me please."
text: ${DRONE_COMMIT_MESSAGE}
fields:
- title: Author
value: ${DRONE_COMMIT_AUTHOR}
- title: Demo
value: This field will only be visible if the current branch: ${DRONE_COMMIT_BRANCH} is master or production
when:
DRONE_COMMIT_BRANCH:
- master
- production
```## Available options
See [source/interfaces/OptionsInterface.d.ts](source/interfaces/OptionsInterface.d.ts)
## Environment Reference
[https://docs.drone.io/reference/environ/](https://docs.drone.io/reference/environ/)
## License
[MIT](LICENSE) © [Rafael Milewski](https://github.com/milewski)