continuous integration - Appveyor builds for all branches instead of specified ones -


we have 3 separated appveyor projects, 1 each branch in our repository.

our problem follwing: appveyor ignores filter on github branches. everytime make commit master, stage or dev builds on 3 projects instead of single 1 did make commit to.

each branch has unique appveyor.yml file looking this:

this appveyor.yml dev

version: 0.0.{build} branches:   only:   - dev image: visual studio 2017 configuration: dev before_build:   - nuget restore build:   project: core.api.sln   publish_wap: true   verbosity: minimal build_script:   - ps: .\build.ps1 after_build:   - cmd: dotnet publish src\core.api --output %appveyor_build_folder%\dist test: off artifacts: - path: dist   name: dist.web deploy: ... 

when make commit, builds on projects. idea??

enter image description here

this happens because each project has webhook configured on github , each time makes commit, each project build triggered webhook. then, regardless of branch configured project (that default branch manual/api builds), appveyor reads appveyor.yml branch commit done.

solution use either alternative yaml file names or alternative yaml file location.

with alternative yaml file names can have appveyor-dev.yml, appveyor-stage.yml files , set specific appveyor project use specific file. alternative yaml file location same, in other location repo. alternative yaml file location more because of less duplication , potential merging issues.

in both cases when webhook in branch dev come stage project, still read appveyor-dev.yml , right filtering.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -