Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message param does not recognize concourse parameters #73

Closed
tanjoht opened this issue Jan 5, 2021 · 2 comments
Closed

Message param does not recognize concourse parameters #73

tanjoht opened this issue Jan 5, 2021 · 2 comments

Comments

@tanjoht
Copy link

tanjoht commented Jan 5, 2021

When using the message: parameter, the string does not replace the built in concourse parameters with the proper values.

ie:
- put: slack-alert
params:
alert_type: failed
message: "${BUILD_TEAM_NAME} Vault Smoke Tests Failed. Refer to the Runbooks at: none yet"

output in slack:
${BUILD_TEAM_NAME} Vault Smoke Tests Failed. Refer to the Runbooks at: none yet

@arbourd
Copy link
Owner

arbourd commented Jan 6, 2021

Ya, this resource has never done variable expansion in the message itself. This is a Go resource so bash things like ${BUILD_TEAM_NAME} don't auto-expand.

You can build it ahead of time with whatever values you want and pass it in as message_file.

@arbourd
Copy link
Owner

arbourd commented Feb 6, 2021

I'm going to close this because it's not actionable.

@arbourd arbourd closed this as completed Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants