cloudfoundry-community / slack-notification-resource

Concourse CI resource for sending notifications to Slack.
MIT License
75 stars 82 forks source link

Allow for environment variables in all attachment fields #37

Closed TimJones closed 3 years ago

TimJones commented 7 years ago

We would like to be able to fill in more fields with environment variables supported by Concourse.

...
      - put: slack-engineering
        params:
          text_file: version/version
          channel: "#test-alerts"
          username: ConcourseCI
          attachments:
            - title: ${BUILD_PIPELINE_NAME} - ${BUILD_JOB_NAME}
              title_link: ${ATC_EXTERNAL_URL}/teams/main/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}
              color: good
              fields:
                - title: Status
                  value: OK!
                  short: true
                - title: Commit
                  value: <https://github.com/xxx/x/commit/${TEXT_FILE_CONTENT}|${TEXT_FILE_CONTENT}>
                  short: true
jhunt commented 6 years ago

Is this addressed by #39 (now merged)?