Adding 'For' node to share configuration between branches doesn't work

Pierre Oppein's Avatar

Pierre Oppein

22 Feb, 2018 06:17 PM

Hey,

I'm trying to overwrite some config values for some branches as explained here : https://www.appveyor.com/blog/2017/08/01/sharing-configuration-between-branches-in-appveyor-yml/

I'm using the following simple configuration :

version: 2.0.0.{build}
configuration: Debug
assembly_info:
  patch: true
  file: '**\SharedAssembly.*'
  assembly_version: '{version}'
  assembly_file_version: '{version}'
  assembly_informational_version: '{version}'
before_build:
- cmd: nuget restore
build:
  publish_wap_xcopy: true
  verbosity: minimal
test: off

for:
-
  branches:
    only:
      - develop
  configuration: Stage

My builds get triggered from commits on BitBucket. If i remove the 'for' section at the end of this config file, my builds are starting just fine.
If i however leave the 'for' section, then my commits won't even trigger a build ... Nothing happens in appveyor, it does not even complain that the file is not well formatted or whatever, it just does not start any build.

Any clue ?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 23 Feb, 2018 07:20 PM

    Ilya Finkelshteyn's Avatar

    Probably commit is not in the develop branch... If you could send us a commit ID and specific time BitBucket webhook was sent, we can check our traces to see the exact reason.

  2. Support Staff 2 Posted by Ilya Finkelshte... on 24 Feb, 2018 04:32 AM

    Ilya Finkelshteyn's Avatar

    Sorry, this is actually a bug. Please watch https://github.com/appveyor/ci/issues/2092, should be fixed soon. For now as a workaround, please add empty for node like this (after existing one)

    - 
      branches: 
        except: 
          - develop
    
  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:26 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