Slack notification for on build status changed

José Simões's Avatar

José Simões

25 Sep, 2017 12:38 PM

Hi,

I've setup the following config:
https://github.com/nanoframework/nf-Visual-Studio-extension/blob/master/appveyor.yml

on which there is on_build_status_changed: true

I'm always receiving a build notification no matter if it's failure or success.
What should be the correct config so I only get notifications if the build breaks (considering that it has been successful before) and when it's back to success after that failure?

Thanks!

  1. Support Staff 1 Posted by Ilya Finkelshte... on 25 Sep, 2017 06:11 PM

    Ilya Finkelshteyn's Avatar

    Hi José,

    Maybe you have also notification settings in UI? Notifications from UI and YAML are being merged.

    Ilya.

  2. 2 Posted by José Simões on 25 Sep, 2017 06:22 PM

    José Simões's Avatar

    Hi,

    I don’t have anything set on the UI.
    Moreover I don’t think there is any UI configuration for Slack…

  3. Support Staff 3 Posted by Ilya Finkelshte... on 25 Sep, 2017 07:06 PM

    Ilya Finkelshteyn's Avatar

    UI configuration exists for every notification provider supported by AppVeyor. Please double-check it under settings > notifications for your project. Anyway, please try to add the flowing to your notification settings:

      on_build_success: false
      on_build_failure: false
    
  4. 4 Posted by José Simões on 26 Sep, 2017 07:50 AM

    José Simões's Avatar

    Hi IIya,

    That did it.

    Suggest that the need for the 3 settings is stressed in the documentation to save frustrations.

    Thanks again!

  5. Support Staff 5 Posted by Ilya Finkelshte... on 26 Sep, 2017 05:07 PM

    Ilya Finkelshteyn's Avatar

    Welcome :) I believe that this is stressed here. Though my favorite way to have correct YAML is do basic things in UI and then press Export YAML.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac