gdenn
10/1/2017 - 8:24 PM

test.yml

---
resources:
  - name: resource-tutorial
    type: git
    source:
      uri: https://github.com/starkandwayne/concourse-tutorial.git

  - name: send-an-email
    type: email
    source:
      smtp:
        host: ****
        port: "25"
        anonymous: true
        skip_ssl_validation: true
      from: ******
      to: [ ********** ]


  - name: slack-alert
    type: slack-notification
    source:
      url: https://hooks.slack.com/services/*********

resource_types:
- name: slack-notification
  type: docker-image
  source:
    repository: cfcommunity/slack-notification-resource

- name: email
  type: docker-image
  source:
    repository: pcfseceng/email-resource

jobs:
- name: job-hello-world
  public: true
  plan:
  - get: resource-tutorial
  - task: hello-world
    file: resource-tutorial/01_task_hello_world/task_hello_world.yml

  on_success:
    try:
      do:
       - put: send-an-email
         params:
           subject_text: 'Success'
           body_text: "Success build"
       - put: slack-alert
         params:
           channel: '#channel'
           text: "Success build"