Branches to build filter is not working.

james.carter's Avatar

james.carter

16 Jan, 2015 05:57 PM

I have two Projects pointing at the same repository, with the Branches to build set to Only branches below.

Each Project is set with a single Branch name, however when I check in on either branch it for some reason causes both Projects to fire their build steps.

Please could you look at my Projects and investigate?

Thank you.

  1. Support Staff 1 Posted by Feodor Fitsner on 16 Jan, 2015 06:04 PM

    Feodor Fitsner's Avatar

    Hi James,

    Do you have appveyor.yml in the repo?

    -Feodor

  2. 2 Posted by james.carter on 16 Jan, 2015 06:06 PM

    james.carter's Avatar

    Hi Feodor,

      I do, I used to have both these branches building from one Project using this syntax:

    -
      branches:
        only:
          - branch1
    -
      branches:
        only:
          - branch2

      However I want to use the Deployments feature now, so that I can build a version of Live or Test, and deploy to each Environment when I need too.

      I assume it is that is causing the issue then?

      I still want different build configurations for each branch/project, that are easiest specified in the yml.

  3. Support Staff 3 Posted by Feodor Fitsner on 16 Jan, 2015 06:08 PM

    Feodor Fitsner's Avatar

    Yeah, if you have appveyor.yml UI settings are ignored. The only exception is environment variables and notifications.

    -Feodor

  4. 4 Posted by james.carter on 16 Jan, 2015 06:10 PM

    james.carter's Avatar

    So to clarify, if I want per branch settings, and both Projects are pointing at the same repository, the only option is to remove the branch specific yml settings and put these in the Project?

  5. Support Staff 5 Posted by Feodor Fitsner on 16 Jan, 2015 06:12 PM

    Feodor Fitsner's Avatar

    You can have per-branch settings in YML as you shown in your previous post.

    -Feodor

  6. 6 Posted by james.carter on 16 Jan, 2015 06:22 PM

    james.carter's Avatar

    I have removed the per branch settings in the YML and moved them into the Project configurations.

    However when I do a push to my Git repository, both Projects start building, despite there not being a branch specific YML and the Default and Only branch settings are set correctly.

  7. Support Staff 7 Posted by Feodor Fitsner on 16 Jan, 2015 06:25 PM

    Feodor Fitsner's Avatar

    Yes, this is because there is still YML in repo. Set "Ignore appveyor.yml" on project settings.

    -Feodor

  8. 8 Posted by james.carter on 16 Jan, 2015 06:28 PM

    james.carter's Avatar

    Hi Feodor,

      I see that by ignoring the YML it stops Projects building on branches they are not configured too, but my general YML settings are then ignored.

      Is it now the case that I cannot use a YML file if I have multiple Projects pointed at the same Branch?

  9. Support Staff 9 Posted by Feodor Fitsner on 16 Jan, 2015 06:34 PM

    Feodor Fitsner's Avatar

    Right, if it's the same branch you can't. Obviously, there is no other way to separate them.

    -Feodor

  10. 10 Posted by james.carter on 16 Jan, 2015 06:40 PM

    james.carter's Avatar

    Hi Feodor,

     Right, so I've removed the appveyor.yml in favour of having both Projects building each branch independently. All working now. Thanks for your help!

      Just for feedback I love AppVeyor and the speed, reliability and ease it deals with my CI process.

    Best regards,
    James

  11. james.carter closed this discussion on 16 Jan, 2015 06:40 PM.

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