Let say that your code base was updated. You want deploy only if build was made over specific branch (example develop
).
In that scenario Build Branch Filter
looks fairly redundant... but what if:
You want to trigger new deployment for every latest
artifact, built from each
feature branch to get them tested. You have to filter for feature/*
.
You want to trigger new deployments if your release branches are updated, but some of them are deprecated and you need to filter them out. I that scenario specify one include
filter release/*
and second exclude
filter release/old*
.
Anyway.. in most of the cases the filter and the branch name (in artifact) will match each other. Still sometimes it can be heady to trigger deployment from multiple branches or filter something out.
In regards to your comment, I uploaded part of the yaml build
. In fact one build can create artifacts from all branches in repository if you want.
trigger:
branches:
include:
- feature/*
- bugfix/*
- release/*
- develop
- master
exclude:
- experimental/*