Skip to content

Slack notification: {{.Params.buildStatus}} substitution not working #188

@scr4bble

Description

@scr4bble

EDIT: found out that this param was missing in the YAML config file that was supposed to provide it. So then it's just the first question that remains: where to find a list of all variables that can be used?

1st thing:
It would be really great to have a list of all available variables for the notification files.

2nd thing:
I have used this text inside slack.json notification file (taken from this example file):
"Cloud Build in {{.Build.ProjectId}} for branch {{.Build.Substitutions.BRANCH_NAME}} finshed with status *{{.Params.buildStatus}}*"
and it resulted into
... with status *<no value>*

Any idea why this behavior?
Also - do you have any link to display all possible variables? It could go into Readme file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions