Skip to content

Commit

Permalink
DEV: Add build pipeline messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed Aug 30, 2018
1 parent 8e46adc commit c060382
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,30 @@ resources:
source:
uri: https://github.com/TonisOrmisson/yii2-helpers.git

- name: notify
type: slack-notification
source:
url: https://hooks.slack.com/services/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

jobs:
- name: run-tests
public: true
plan:
- get: helpers
trigger: true
- task: run tests
on_failure:
put: notify
params:
attachments: '[{"color": "danger","text": "Build $BUILD_NAME for Yii2-Helpers failed!"}]'
on_abort:
put: notify
params:
attachments: '[{"color": "warning","text": "Build $BUILD_NAME for Yii2-Helpers was aborted!"}]'
on_success:
put: notify
params:
attachments: '[{"color": "good","text": "Build $BUILD_NAME for Yii2-Helpers was successful!"}]'
privileged: true
config:
inputs:
Expand Down

0 comments on commit c060382

Please sign in to comment.