ci: Add the mailer step to notify pipeline
This commit is contained in:
parent
263e3f7384
commit
b66ed56a01
|
@ -13,8 +13,6 @@ pipeline:
|
||||||
# Uncomment this when running with a new toolchain for the
|
# Uncomment this when running with a new toolchain for the
|
||||||
# first time to save up space
|
# first time to save up space
|
||||||
# - rm -rf /root/.serene/*
|
# - rm -rf /root/.serene/*
|
||||||
- pwd
|
|
||||||
- ls
|
|
||||||
- ./builder build -DSERENE_DISABLE_CCACHE=ON
|
- ./builder build -DSERENE_DISABLE_CCACHE=ON
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -8,7 +8,7 @@ clone:
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
Linters:
|
Linters:
|
||||||
image: beta.devheroes.codes/serene/ci:9
|
image: devheroes.codes/serene/ci:10
|
||||||
commands:
|
commands:
|
||||||
- ./builder setup
|
- ./builder setup
|
||||||
- export FILES="$(git diff --name-only HEAD HEAD~1)"
|
- export FILES="$(git diff --name-only HEAD HEAD~1)"
|
||||||
|
|
|
@ -14,6 +14,22 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
status: [ failure ]
|
status: [ failure ]
|
||||||
|
|
||||||
|
Mailer:
|
||||||
|
image: lxsameer/woodpecker_mailer:4
|
||||||
|
settings:
|
||||||
|
from: ci@serene-lang.org
|
||||||
|
user:
|
||||||
|
from_secret: mail_user
|
||||||
|
password:
|
||||||
|
from_secret: mail_pass
|
||||||
|
to: ${CI_COMMIT_AUTHOR_EMAIL}
|
||||||
|
subject: "[${CI_REPO}] JOB #${CI_BUILD_NUMBER} - ${CI_PREV_STEP_STATUS}"
|
||||||
|
text: |
|
||||||
|
BUILD: ${CI_BUILD_LINK}
|
||||||
|
COMMIT: ${CI_COMMIT_LINK}
|
||||||
|
when:
|
||||||
|
status: [ failure ]
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- lint
|
- lint
|
||||||
- build
|
- build
|
||||||
|
|
Loading…
Reference in New Issue