-
Notifications
You must be signed in to change notification settings - Fork 118
Set up template_success and template_failure for notifications based on build result #368
base: master
Are you sure you want to change the base?
Conversation
Template selection logic should be in one place. |
We don't send notifications for canceled builds, but we do for errored builds. Might be good to add a template category for errored. |
the |
We could conceivably refactor #config instead.
|
Personally not sure how I feel about this change, as it adds a lot of more noise to the .travis.yml. I could imagine these working a lot better when we have a proper UI for notifications rather than increase complexity in the .travis.yml as it is. |
I'm leaning towards what @roidrage said -- I think this might work better in the UI rather than here, although if we are going to move notification settings to the UI, this increase in complexity would be temporary, so all in all I don't have a strong opinion either way, I think. |
So this has been a year since a mostly-working (?) branch was submitted here, in favor of "Notifications in Web UI" -- and while I think the latter is a good solution that would benefit here, this is pretty important to me as in obviates one of my largest notfication pet peeves (#1332 is what drove me here, among others of that vein, e.g. colorizing IRC notifications based on pass/fail) I'd love if this can be picked up and continued. |
So I am a little torn about this as we are not far off from adding this to the web ui, although that said, 'not far off' is still 3-6 months away. @BanzaiMan how about you rebase this and change the logic to favour config like this:
|
|
Is this feature achievable now? |
Allows users to specify
template_success
andtemplate_failure
in certain notification providers (IRC, HipChat, Campfire, Slack, Sqwiggle), which will be used based on the build result. These recognize onlypassed
andfailed
results, and noterrored
andcanceled
. We can probably wrap these into thetemplate_failure
category. (I feel thattemplate_errored
andtemplate_canceled
are overkill.)This addresses travis-ci/travis-ci#486, travis-ci/travis-ci#1332 and travis-ci/travis-ci#2032.