ci(pipeline): comment on failure (pr)

This commit is contained in:
Simon Vieille 2023-01-01 20:11:15 +01:00
parent 7c47d9dd35
commit 0337e9fd14
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -64,12 +64,13 @@ pipeline:
comment_on_failure:
image: tsakidev/giteacomment:latest
secrets: [gitnet_token]
environment:
- DRONE_REPO_NAMESPACE=${CI_REPO_NAME}
- DRONE_REPO_NAME=${CI_REPO}
- DRONE_PULL_REQUEST=${CI_COMMIT_PULL_REQUEST}
settings:
gitea_token: ${GITNET_TOKEN}
gitea_base_url: https://gitnet.fr
drone_repo_namespace: ${CI_REPO_NAME}
drone_repo_name: ${CI_REPO}
drone_pull_request: ${CI_COMMIT_PULL_REQUEST}
comment: "Pipeline [#${CI_PIPELINE_NUMBER}](${CI_PIPELINE_LINK}) failed.
when:
status: [failure]