One or many files
Does it inhibit the trigger if one of the changed files match?
Or does it inhibit the trigger if all of the changed files match?
(in other words: only matching files have changed)
According commit message trigger is inhibit if any file is matched.
This forbidden file allows the project not to trigger if any forbidden
file has been impacted.
Overriding
I suppose it "overrides" a match of "Add File Path", doesn't it?
Yes. Add Forbidden file path
has higher priority than Add File path
.
Working for ...
does it work for directory names only or down to file names?
For both. But it is hard to add empty folder.
Question about behavior
This leads mit to the question if:
"File Path"= ^((?!_abc)(?!_def).)*$
behaves equal to:
"Forbidden File Path"= ^._abc$|^._def$ ?
Probably you made a mistake: ^((?!_abc)(?!_def).)*$
instead of ^.*(?!_abc)(?!_def)$
. Because in first case you compare right from start (^
) and your quantifier (*
) repeats whole expression, not a .
.
In second case we have a different behavior for two or more files. Because
Add File path
starts build if any of them found. But Add Forbidden File path
inhibits build if any of file found.
- Also you need to fill
Add File path
with **
at least to start work Add Forbidden File path
. Add Forbidden File path
doesn't work if Add File path
is empty.