Notifications only send with an ON condition?

Pure Krome's Avatar

Pure Krome

18 Aug, 2017 05:28 AM

Heya,

I'm trying out the new for: node (Sharing common config between nodes) which is an AWESOME addition!

Anyways, I have a condition for master or patch branches..

for:
-
  branches:
    only:
      - master
      - patch

  configuration: Release  

  deploy:
    - provider: WebDeploy
    <snipped>
    on:
        appveyor_repo_tag: true

  notifications:
    - provider: Slack
      <snipped -> goes to channel # 1 >
    - provider: Slack
      <snipped -> goes to channel # 2 ... >

See that notifications section? See how we have 2x notifications?

I'm hoping to only send that second notification IF the current build is a TAG and of course, a tag on master or patch (because it's defined in this specific for section). Of course we don't tag patch but we tag master which does our releases.

so like this...

    - provider: Slack
      <snipped -> goes to channel # 2 ... >
      on:
        appveyor_repo_tag: true

Is this possible? If not, can we add a GH issue to request it, if you kind folks like this idea?

  1. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:19 AM.

Comments are currently closed for this discussion. You can start a new one.

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