Add logs in error mail
This commit is contained in:
parent
65a33f80f3
commit
1b966c08d5
30
.drone.yml
30
.drone.yml
|
@ -71,7 +71,7 @@ steps:
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: leophys/pikaur:0.2
|
image: leophys/pikaur:0.2
|
||||||
commands:
|
commands:
|
||||||
- /usr/bin/pikaur -Sy --noconfirm electron-ozone
|
- /usr/bin/pikaur -Sy --noconfirm electron-ozone|tee /output/electron-ozone.log
|
||||||
volumes:
|
volumes:
|
||||||
- name: build_electron-ozone
|
- name: build_electron-ozone
|
||||||
path: /build
|
path: /build
|
||||||
|
@ -83,6 +83,8 @@ steps:
|
||||||
path: /var
|
path: /var
|
||||||
- name: usr_electron-ozone
|
- name: usr_electron-ozone
|
||||||
path: /usr
|
path: /usr
|
||||||
|
- name: output
|
||||||
|
path: /output
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: build_electron-ozone
|
- name: build_electron-ozone
|
||||||
|
@ -100,6 +102,9 @@ volumes:
|
||||||
- name: usr_electron-ozone
|
- name: usr_electron-ozone
|
||||||
host:
|
host:
|
||||||
path: /var/builds/archlinux/usr/electron-ozone
|
path: /var/builds/archlinux/usr/electron-ozone
|
||||||
|
- name: output
|
||||||
|
host:
|
||||||
|
path: /var/builds/archlinux/output
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
@ -132,7 +137,13 @@ steps:
|
||||||
M_TO:
|
M_TO:
|
||||||
from_secret: m_to
|
from_secret: m_to
|
||||||
M_SUB: "[electron-ozone] FAILURE"
|
M_SUB: "[electron-ozone] FAILURE"
|
||||||
M_TEXT: "Failed building electron-ozone"
|
commands:
|
||||||
|
- M_TEXT=$(cat /output/electron-ozone.log) /sendmail.sh
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: output
|
||||||
|
host:
|
||||||
|
path: /var/builds/archlinux/output
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
status:
|
status:
|
||||||
|
@ -215,7 +226,7 @@ steps:
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: leophys/pikaur:0.2
|
image: leophys/pikaur:0.2
|
||||||
commands:
|
commands:
|
||||||
- /usr/bin/pikaur -Sy --noconfirm discord_arch_electron
|
- /usr/bin/pikaur -Sy --noconfirm discord_arch_electron|tee /output/discord_arch_electron.log
|
||||||
volumes:
|
volumes:
|
||||||
- name: build_discord_arch_electron
|
- name: build_discord_arch_electron
|
||||||
path: /build
|
path: /build
|
||||||
|
@ -227,6 +238,8 @@ steps:
|
||||||
path: /var
|
path: /var
|
||||||
- name: usr_discord_arch_electron
|
- name: usr_discord_arch_electron
|
||||||
path: /usr
|
path: /usr
|
||||||
|
- name: output
|
||||||
|
path: /output
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: build_discord_arch_electron
|
- name: build_discord_arch_electron
|
||||||
|
@ -244,6 +257,9 @@ volumes:
|
||||||
- name: usr_discord_arch_electron
|
- name: usr_discord_arch_electron
|
||||||
host:
|
host:
|
||||||
path: /var/builds/archlinux/usr/discord_arch_electron
|
path: /var/builds/archlinux/usr/discord_arch_electron
|
||||||
|
- name: output
|
||||||
|
host:
|
||||||
|
path: /var/builds/archlinux/output
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
@ -276,7 +292,13 @@ steps:
|
||||||
M_TO:
|
M_TO:
|
||||||
from_secret: m_to
|
from_secret: m_to
|
||||||
M_SUB: "[discord_arch_electron] FAILURE"
|
M_SUB: "[discord_arch_electron] FAILURE"
|
||||||
M_TEXT: "Failed building discord_arch_electron"
|
commands:
|
||||||
|
- M_TEXT=$(cat /output/discord_arch_electron.log) /sendmail.sh
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: output
|
||||||
|
host:
|
||||||
|
path: /var/builds/archlinux/output
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
status:
|
status:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user