Add build failure notification to concourse pipeline
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
resource_types:
|
||||
- name: slack-notification
|
||||
type: docker-image
|
||||
source:
|
||||
repository: cfcommunity/slack-notification-resource
|
||||
tag: latest
|
||||
resources:
|
||||
- name: docker-git
|
||||
type: git
|
||||
@@ -8,12 +14,16 @@ resources:
|
||||
private_key: {{rsa_id}}
|
||||
paths:
|
||||
- concourse/docker
|
||||
- name: sts4-git
|
||||
- name: sts4
|
||||
type: git
|
||||
source:
|
||||
uri: git@github.com:spring-projects/sts4.git
|
||||
branch: master
|
||||
private_key: {{rsa_id}}
|
||||
- name: slack-notification
|
||||
type: slack-notification
|
||||
source:
|
||||
url: https://hooks.slack.com/services/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
|
||||
- name: docker-image
|
||||
type: docker-image
|
||||
source:
|
||||
@@ -34,12 +44,12 @@ jobs:
|
||||
skip_download: true
|
||||
- name: build-vsix
|
||||
plan:
|
||||
- get: sts4-git
|
||||
- get: sts4
|
||||
trigger: true
|
||||
- task: build-vscode-extensions
|
||||
config:
|
||||
inputs:
|
||||
- name: sts4-git
|
||||
- name: sts4
|
||||
platform: linux
|
||||
image_resource:
|
||||
type: docker-image
|
||||
@@ -47,4 +57,10 @@ jobs:
|
||||
repository: kdvolder/sts4-build-env
|
||||
run:
|
||||
path: "./build-all.sh"
|
||||
dir: "sts4-git/vscode-extensions"
|
||||
dir: "sts4/vscode-extensions"
|
||||
on_failure:
|
||||
put: slack-notification
|
||||
params:
|
||||
channel: "@kdvolder"
|
||||
text: |
|
||||
Concourse ${BUILD_JOB_NAME}/${BUILD_NAME} has failed!
|
||||
|
||||
Reference in New Issue
Block a user