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

notify slack conditionally #102

Closed
HeenaBansal20 opened this issue Nov 6, 2024 · 1 comment
Closed

notify slack conditionally #102

HeenaBansal20 opened this issue Nov 6, 2024 · 1 comment

Comments

@HeenaBansal20
Copy link

HI ,
I wanted to know if we have following feature enabled in this resource.
I wanted to notify slack only at particular condition not every time when pipelines success..
For example:
I want to notify slack when my notification message is not empty..else don't slack anything.

DO we have something like this which I can use.

Thanks

@bgandon
Copy link
Contributor

bgandon commented Nov 16, 2024

Yes, indeed.
Use a put step, and configure it with a text_file in the params. Then when an earlier step generates the notification text in an artefact, when the text file is present but empty, then the slack-notification resource will not sent any notification, just as documented.
Don't hesitate to have a look at the docs for more possibilities.

@bgandon bgandon closed this as completed Nov 16, 2024
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