cloudfoundry-community / slack-notification-resource

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

Empty text_file sends notification #81

Closed enchobelezirev closed 4 years ago

enchobelezirev commented 4 years ago

I have the following pipeline: resource_types:

jobs:

The file files/slack-notification-test exists but it is empty. It is crated by the above task example and is populated in certain cases. I want when the file is populated with some content, then to be sent to the Slack channel. The problem is that each time I have the (no notification provided) message, event though the file is empty.

As the documentation says,

when text specified with $TEXT_FILE_CONTENT and more content, and... text_file omitted, or present but file missing $TEXT_FILE_CONTENT is replaced with "(no notification given)" text_file specified and present but file empty: no notification is sent

Is something wrong or I did something wrong?

Regards, Encho

jhunt commented 4 years ago

That sounds like a bug...

enchobelezirev commented 4 years ago

Mistake from my side.

samcolson4 commented 2 years ago

What was the solution to this issue?