Open StatusPro-ziegelt opened 1 year ago
kind: pipeline
type: docker
name: notify-rocket-chat-push-prod
trigger:
event:
- push
branch:
- main
steps:
- name: notify-build-finished
image: mike1pol/drone-rocket
settings:
url:
from_secret: ROCKET_URL
user_id:
from_secret: ROCKET_USER
token:
from_secret: ROCKET_TOKEN
channel:
from_secret: ROCKET_CHANNEL
message: |
DroneCI Pipeline
Status: {{ build.status }} for #{{ build.number }} / {{ build.tag }}
{{ repo.name }} : {{ commit.author }} {{ build.event }} {{ commit.sha }} @ {{ commit.branch }}
Started: {{ build.started}} Finished: {{ build.finished }}
{{ commit.message }}
{{ build.link }}
depends_on:
- deploy-prod-cluster
@StatusPro-ziegelt
message: |
@${DRONE_COMMIT_AUTHOR}
Build *${DRONE_BUILD_STATUS}*
${DRONE_REPO} #${DRONE_BUILD_NUMBER}
${DRONE_COMMIT_MESSAGE}
[Click to view detail](${DRONE_BUILD_LINK})
Hi - thanks for the reply - I will try it out. But - is there any documentation on these fields somewhere ? Or do I need to search inside the code ?
Hi everyone,
I just saw on https://github.com/drone/drone-plugin-index/blob/main/plugins/rocket/original.md that there are some (here) undocumented flags from drone, that I could use to deploy a message to rocket chat.
Basically my integration is working - thanks for this wonderful plugin.
Unfortunately, I won't get the configured info. Maybe I'm using it wrong ?