Make build notifications more verbose
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2fbf607707
commit
8155df25e5
54
.drone.yml
54
.drone.yml
@ -95,8 +95,8 @@ steps:
|
|||||||
event: promote
|
event: promote
|
||||||
target: production
|
target: production
|
||||||
|
|
||||||
# =============== NOTIFICATIONS ===============
|
# =============== BUILD NOTIFICATIONS ===============
|
||||||
- name: send success notifications
|
- name: send buile success notifications
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
urls:
|
urls:
|
||||||
@ -104,13 +104,16 @@ steps:
|
|||||||
content_type: application/json
|
content_type: application/json
|
||||||
template: |
|
template: |
|
||||||
{
|
{
|
||||||
"title": "Drone-CI [noded-frontend]",
|
"title": "Drone-CI [noded-frontend @ ${DRONE_BUILD_NUMBER}]",
|
||||||
"message": "Build ${DRONE_BUILD_NUMBER} completed successfully.",
|
"message": "Build completed successfully. (Changes by ${DRONE_COMMIT_AUTHOR}: ${DRONE_COMMIT_MESSAGE})",
|
||||||
"priority": 4
|
"priority": 4
|
||||||
}
|
}
|
||||||
when:
|
when:
|
||||||
status: success
|
status: success
|
||||||
- name: send error notifications
|
event:
|
||||||
|
exclude:
|
||||||
|
- promote
|
||||||
|
- name: send build error notifications
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
urls:
|
urls:
|
||||||
@ -118,9 +121,46 @@ steps:
|
|||||||
content_type: application/json
|
content_type: application/json
|
||||||
template: |
|
template: |
|
||||||
{
|
{
|
||||||
"title": "Drone-CI [noded-frontend]",
|
"title": "Drone-CI [noded-frontend @ ${DRONE_BUILD_NUMBER}]",
|
||||||
"message": "Build ${DRONE_BUILD_NUMBER} failed!",
|
"message": "Build failed! (Changes by ${DRONE_COMMIT_AUTHOR}: ${DRONE_COMMIT_MESSAGE})",
|
||||||
"priority": 6
|
"priority": 6
|
||||||
}
|
}
|
||||||
when:
|
when:
|
||||||
status: failure
|
status: failure
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- promote
|
||||||
|
|
||||||
|
# =============== DEPLOY NOTIFICATIONS ===============
|
||||||
|
- name: send deploy success notifications
|
||||||
|
image: plugins/webhook
|
||||||
|
settings:
|
||||||
|
urls:
|
||||||
|
from_secret: notify_webhook_url
|
||||||
|
content_type: application/json
|
||||||
|
template: |
|
||||||
|
{
|
||||||
|
"title": "Drone-Deploy [noded-frontend @ ${DRONE_BUILD_NUMBER} to ${DRONE_DEPLOY_TO}]",
|
||||||
|
"message": "Deployment completed successfully. (Changes by ${DRONE_COMMIT_AUTHOR}: ${DRONE_COMMIT_MESSAGE})",
|
||||||
|
"priority": 4
|
||||||
|
}
|
||||||
|
when:
|
||||||
|
status: success
|
||||||
|
event:
|
||||||
|
- promote
|
||||||
|
- name: send deploy error notifications
|
||||||
|
image: plugins/webhook
|
||||||
|
settings:
|
||||||
|
urls:
|
||||||
|
from_secret: notify_webhook_url
|
||||||
|
content_type: application/json
|
||||||
|
template: |
|
||||||
|
{
|
||||||
|
"title": "Drone-Deploy [noded-frontend @ ${DRONE_BUILD_NUMBER} to ${DRONE_DEPLOY_TO}]",
|
||||||
|
"message": "Deployment failed! (Changes by ${DRONE_COMMIT_AUTHOR}: ${DRONE_COMMIT_MESSAGE})",
|
||||||
|
"priority": 6
|
||||||
|
}
|
||||||
|
when:
|
||||||
|
status: failure
|
||||||
|
event:
|
||||||
|
- promote
|
||||||
|
Loading…
Reference in New Issue
Block a user