navicore / teams-notification-resource

for Concourse CI notifications on Microsoft Teams
MIT License
32 stars 33 forks source link

providing `text_file` always results in _(NO MSG FILE)_ #14

Closed cah-tyler-rasor closed 3 years ago

cah-tyler-rasor commented 3 years ago

in #13 we added the ability to pass in a reference to a text_file produced by a previous job, but this always results in a _(NO MSG FILE)_ message

resource_types:
- name: teams-notification
  type: registry-image
  source:
    repository: navicore/teams-notification-resource
    tag: v0.9.4

resources:
- name: teams-notification
  type: teams-notification
  source:
    url: ((webhook-url))

jobs:
- name: test-text-file
  plan:
  - task: generate-file
    config:
      platform: linux
      image_resource:
        type: registry-image
        source: { repository: alpine }
      outputs:
      - name: output
      run:
        path: sh
        args:
        - -exc
        - echo "test" > output/text_file
  - put: teams-notification
    params:
      text_file: output/text_file
      title: testing text file

image