tele
This commit is contained in:
parent
ca67656dbd
commit
af4836e46d
@ -16,7 +16,8 @@ steps:
|
||||
- cmake -G "Ninja" -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ ..
|
||||
- cmake ..
|
||||
- ninja
|
||||
- ./testbin > /sharing/message.txt
|
||||
- cp drone-template.tpl /sharing/message.tpl
|
||||
- ./testbin >> /sharing/message.tpl
|
||||
|
||||
|
||||
- name: send telegram notification
|
||||
@ -28,7 +29,7 @@ steps:
|
||||
token: 1008627097:AAGJdFwxwV5eUNWHuI9LnO-_oRCNUirLTx0
|
||||
to: -1001226107365
|
||||
message:
|
||||
+ message_file: /sharing/message.txt
|
||||
+ message_file: /sharing/message.tpl
|
||||
|
||||
|
||||
volumes:
|
||||
|
14
drone-template.tpl
Normal file
14
drone-template.tpl
Normal file
@ -0,0 +1,14 @@
|
||||
There was a {{build.event}} which resulted in build {{build.number}}
|
||||
This is the event message:
|
||||
{{commit.message}}
|
||||
|
||||
Build finished for *{{tpl.app}}* - *{{tpl.env}}*
|
||||
Build finished in {{{build.finished}} - {{build.started}} } seconds.
|
||||
|
||||
{{#success build.status}}
|
||||
build {{build.number}} succeeded. Good job.
|
||||
{{else}}
|
||||
build {{build.number}} failed. Fix me please.
|
||||
{{/success}}
|
||||
|
||||
This is the test output:
|
Loading…
Reference in New Issue
Block a user