cloudfoundry-community / slack-notification-resource

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

Interpolation in attachment text doesn't work #25

Closed analytically closed 7 years ago

flightofthunder commented 7 years ago

I'm having this issue too. Doing something like this:

attachments:
  - color: '#99ccff'
    text: |
      $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME

will output the string verbatim, whereas I would expect it to interpret the metadata variables.

jhunt commented 7 years ago

I will take a look at this tonight, @analytically

analytically commented 7 years ago

Thanks!

shedali commented 7 years ago

This works great - interpolation of values in the fields array would also be useful.

jagregory commented 7 years ago

+1 for the fields array too.