Branches
Include or exclude branches from being built
Include or exclude branches for your build to be run on.
This is a legacy setting, use the more powerful condition (if
) to define branches for your build to be run on.
This node uses the key only
as a default prefix if not given a map.
Types
Keys
If given a map, the following keys are supported:
only
— Branches to include (type: sequence of string, or string, e.g.:master
)except
— Branches to exclude (type: sequence of string, or string, alias:exclude
, e.g.:develop
)
Examples
branch:
only:
- master
except:
- develop
branch:
- master
branch: master