Question about running a new build on AppVeyor when there is a job for a specific branch.

weerayuth_r's Avatar

weerayuth_r

02 Nov, 2020 05:07 AM

My appveyor.yml has four jobs and two jobs have this setting to trigger when it is a master branch.

Example of a job

  - matrix:
      only:
        - job_name: Build Test App
    branches:
      only:
        - master

This is working when I push my commit in my feature branch (not master) to bitbucket. Only two jobs without the branches setting are executed as expected.

However, if I manually rebuild on AppVeyor page, a new build will trigger all jobs regardless of the setting of branches.

Is there a way to ensure the jobs are triggered correctly when I manually rebuild?

  1. Support Staff 1 Posted by Feodor Fitsner on 02 Nov, 2020 10:48 PM

    Feodor Fitsner's Avatar

    You mean you are not getting the same behaviour with "Re-build commit" button or "New build"?

  2. 2 Posted by weerayuth_r on 03 Nov, 2020 01:15 AM

    weerayuth_r's Avatar

    Hi Feodor

    Correct. All jobs are triggered when using "Re-build commit" button and "New build" button.

  3. Support Staff 3 Posted by Feodor Fitsner on 03 Nov, 2020 02:08 AM

    Feodor Fitsner's Avatar

    One of the ways to workaround that issue is to "re-deliver" webhook request on GitHub repository.

  4. 4 Posted by weerayuth_r on 03 Nov, 2020 03:00 AM

    weerayuth_r's Avatar

    Sorry. I didn't mention earlier. I'm using Bitbucket. I don't see an option for "re-deliver" on Bitbucket.

    Do you know if there is another workaround which might work with Bitbucket?

  5. Support Staff 5 Posted by Feodor Fitsner on 03 Nov, 2020 07:16 PM

    Feodor Fitsner's Avatar

    You can do some trivial changes to the code and push updates just to kick off a new build.

  6. 6 Posted by weerayuth_r on 05 Nov, 2020 06:37 AM

    weerayuth_r's Avatar

    Thanks Feodor. I haven't got a solution for this yet.
    However, I will address later if I need to.

    If I make it working, I will share a solution.

  7. weerayuth_r closed this discussion on 05 Nov, 2020 06:37 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