PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tutorials/miscellaneous/slack-notifications/pipeline-custom-metadata.yml

https://bitbucket.org/igtbdigital/concourse-ci
YAML | 44 lines | 42 code | 2 blank | 0 comment | 0 complexity | 6ba3bd3f4c8f149c12c7430aadb3f50b MD5 | raw file
 1---
 2resource_types:
 3- name: slack-notification
 4  type: docker-image
 5  source:
 6    repository: cfcommunity/slack-notification-resource
 7
 8resources:
 9- name: notify
10  type: slack-notification
11  source:
12    url: ((slack-webhook))
13- name: tutorial
14  type: git
15  source:
16    uri: https://github.com/starkandwayne/concourse-tutorial.git
17    branch: develop
18
19jobs:
20- name: test
21  public: true
22  serial: true
23  plan:
24  - get: tutorial
25    trigger: true
26  - task: test-sometimes-works
27    config:
28      platform: linux
29      image_resource:
30        type: docker-image
31        source: {repository: busybox}
32      inputs:
33      - name: tutorial
34      outputs:
35      - name: notify_message
36      run:
37        path: tutorial/tutorials/miscellaneous/slack-notifications/test-sometimes-works-notify-message.sh
38    ensure:
39      put: notify
40      params:
41        username:  starkandwayne-ci
42        icon_url:  https://www.starkandwayne.com/assets/images/shield-blue-50x50.png
43        text_file: notify_message/message
44        silent: true