Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Missing infos on possible drone status fields #7

Open
StatusPro-ziegelt opened this issue Sep 2, 2022 · 4 comments
Open

Missing infos on possible drone status fields #7

StatusPro-ziegelt opened this issue Sep 2, 2022 · 4 comments

Comments

@StatusPro-ziegelt
Copy link

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 ?

@StatusPro-ziegelt
Copy link
Author

StatusPro-ziegelt commented Sep 2, 2022

image

@StatusPro-ziegelt
Copy link
Author

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

@nxyd
Copy link

nxyd commented Sep 15, 2022

@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})

@StatusPro-ziegelt
Copy link
Author

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 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants