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 Posted by Feodor Fitsner Support staff on 02 Nov, 2020 10:48 PM
You mean you are not getting the same behaviour with "Re-build commit" button or "New build"?
#2 Posted by weerayuth_r on 03 Nov, 2020 01:15 AM
Hi Feodor
Correct. All jobs are triggered when using "Re-build commit" button and "New build" button.
#3 Posted by Feodor Fitsner Support staff on 03 Nov, 2020 02:08 AM
One of the ways to workaround that issue is to "re-deliver" webhook request on GitHub repository.
#4 Posted by weerayuth_r on 03 Nov, 2020 03:00 AM
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 Posted by Feodor Fitsner Support staff on 03 Nov, 2020 07:16 PM
You can do some trivial changes to the code and push updates just to kick off a new build.
#6 Posted by weerayuth_r on 05 Nov, 2020 06:37 AM
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.
weerayuth_r closed this discussion on 05 Nov, 2020 06:37 AM.