apply notif success & failed
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
steps:
|
steps:
|
||||||
- name: telegram_start_notify
|
- name: telegram start notify
|
||||||
image: appleboy/drone-telegram
|
image: appleboy/drone-telegram
|
||||||
settings:
|
settings:
|
||||||
token: 7616010754:AAGXMf8x-roKozdT0j-bOZ1y9dmbulbKPbM
|
token: 7616010754:AAGXMf8x-roKozdT0j-bOZ1y9dmbulbKPbM
|
||||||
@ -11,12 +11,12 @@ steps:
|
|||||||
*Repo Link:* ${CI_REPO_URL}
|
*Repo Link:* ${CI_REPO_URL}
|
||||||
*Branch:* ${CI_COMMIT_BRANCH}
|
*Branch:* ${CI_COMMIT_BRANCH}
|
||||||
|
|
||||||
*Build Status:* starting
|
*Build Status:* *starting*
|
||||||
*Build Link:* ${CI_PIPELINE_URL}
|
*Build Link:* ${CI_PIPELINE_URL}
|
||||||
|
|
||||||
*Commit ID:* `${CI_COMMIT_SHA:0:8}`
|
*Commit ID:* `${CI_COMMIT_SHA:0:8}`
|
||||||
*Commit By:* ${CI_PREV_COMMIT_AUTHOR}
|
*Commit By:* {{commit.author}}
|
||||||
*Commit Link:* ${CI_PREV_COMMIT_URL}
|
*Commit Link:* {{commit.link}}
|
||||||
*Commit Msg:* {{commit.message}}
|
*Commit Msg:* {{commit.message}}
|
||||||
🙏 hopefully success Mas Bro.
|
🙏 hopefully success Mas Bro.
|
||||||
when:
|
when:
|
||||||
@ -59,7 +59,7 @@ steps:
|
|||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
- name: telegram_end_notify
|
- name: telegram failed notify
|
||||||
image: appleboy/drone-telegram
|
image: appleboy/drone-telegram
|
||||||
settings:
|
settings:
|
||||||
token: 7616010754:AAGXMf8x-roKozdT0j-bOZ1y9dmbulbKPbM
|
token: 7616010754:AAGXMf8x-roKozdT0j-bOZ1y9dmbulbKPbM
|
||||||
@ -71,18 +71,43 @@ steps:
|
|||||||
*Repo Link:* ${CI_REPO_URL}
|
*Repo Link:* ${CI_REPO_URL}
|
||||||
*Branch:* ${CI_COMMIT_BRANCH}
|
*Branch:* ${CI_COMMIT_BRANCH}
|
||||||
|
|
||||||
*Build Status:* *${CI_PREV_PIPELINE_STATUS}*
|
*Build Status:* *Failed*
|
||||||
*Build Link:* ${CI_PIPELINE_URL}
|
*Build Link:* ${CI_PIPELINE_URL}
|
||||||
|
|
||||||
*Commit ID:* `${CI_COMMIT_SHA:0:8}`
|
*Commit ID:* `${CI_COMMIT_SHA:0:8}`
|
||||||
*Commit By:* ${CI_PREV_COMMIT_AUTHOR}
|
*Commit By:* {{commit.author}}
|
||||||
*Commit Link:* ${CI_PREV_COMMIT_URL}
|
*Commit Link:* {{commit.link}}
|
||||||
*Commit Msg:* {{commit.message}}
|
*Commit Msg:* {{commit.message}}
|
||||||
{{#success build.status}}
|
|
||||||
😎 build succeeded. Good job.
|
|
||||||
{{else}}
|
|
||||||
🙈 build failed. Fix me please, before client is aware.
|
🙈 build failed. Fix me please, before client is aware.
|
||||||
{{/success}}
|
|
||||||
when:
|
when:
|
||||||
|
status:
|
||||||
|
- failure
|
||||||
|
- cancel
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
- name: telegram success notify
|
||||||
|
image: appleboy/drone-telegram
|
||||||
|
settings:
|
||||||
|
token: 7616010754:AAGXMf8x-roKozdT0j-bOZ1y9dmbulbKPbM
|
||||||
|
to: -4765409490
|
||||||
|
message: |
|
||||||
|
🚀 *Woodpecker CI Build Finish* 🚀
|
||||||
|
|
||||||
|
*Repo:* ${CI_REPO_OWNER}/${CI_REPO_NAME}
|
||||||
|
*Repo Link:* ${CI_REPO_URL}
|
||||||
|
*Branch:* ${CI_COMMIT_BRANCH}
|
||||||
|
|
||||||
|
*Build Status:* *Success*
|
||||||
|
*Build Link:* ${CI_PIPELINE_URL}
|
||||||
|
|
||||||
|
*Commit ID:* `${CI_COMMIT_SHA:0:8}`
|
||||||
|
*Commit By:* {{commit.author}}
|
||||||
|
*Commit Link:* {{commit.link}}
|
||||||
|
*Commit Msg:* {{commit.message}}
|
||||||
|
😎 build succeeded. Good job.
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|||||||
Reference in New Issue
Block a user