Build all branches except

Oleksandr Stovbenko's Avatar

Oleksandr Stovbenko

20 Feb, 2020 05:48 PM

Greetings,

We have appveyor.yml w/o any branches related filters.
We set in project settings "Branches to build" to "Only branches specified below" with some branch name.
Why project build still triggered for specified branch?
I guessed that project config and appveyor.yml will be merged in a proper way?

Thanks!

  1. 1 Posted by Oleksandr Stovb... on 20 Feb, 2020 05:54 PM

    Oleksandr Stovbenko's Avatar
  2. 2 Posted by Oleksandr Stovb... on 20 Feb, 2020 06:03 PM

    Oleksandr Stovbenko's Avatar

    Well anyway... If "Default branch" can be configured only with UI and "It is possible to have both appveyor.yml and any of those UI setting" why "Branches to build" can not be overrided by appveyor.yml?

  3. Support Staff 3 Posted by Feodor Fitsner on 20 Feb, 2020 07:12 PM

    Feodor Fitsner's Avatar

    "Default branch" configured on UI is effective when you start a new build from UI with "New build" button and when a scheduled build is started. Branch filtering could only be done in either UI or appveyor.yml. If appveyor.yml exists all UI settings except environment variables and notifications are ignored.

  4. 4 Posted by Oleksandr Stovb... on 20 Feb, 2020 07:39 PM

    Oleksandr Stovbenko's Avatar

    "If appveyor.yml exists all UI settings except environment variables and notifications are ignored."
    This is wrong IMHO. Because of I need to exclude branch building in branch code and not in project configuration...So I need to put exclude in all branches except one that I want to build (and there I will pt "only": ).
    Is it not logical?

  5. 5 Posted by Oleksandr Stovb... on 20 Feb, 2020 07:48 PM

    Oleksandr Stovbenko's Avatar

    Let me describe this in more details.
    We already have a lot of branches (like feature/something, etc).
    So if we want to stop building some particular branch for some project (that should build master and all feature branches and etc) we need to make changes into appveyor.yml for that branch?
    I think this should be done on project level.
    My suggestion is to review this logic.

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