This plugin provides additional configuration to prevent multi branch projects from triggering new builds based on a include or exclude regions in source repository.
Each region uses ant pattern matching, and must be separated by a new line.
Any commented line should start by #
# excluding html and jpeg changes to trigger builds src/main/web/**/*.html src/main/web/**/*.jpeg
# Any changes on java files will trigger build src/main/java/**/*.java
Let's say you don't want your CI to run on
.gitignore or any
.html file changes
- On multibranch job go to Build Strategies section, click Add button and select Cancel build excluded regions strategy
- Fill the textarea with ant style exclusions:
README.md .gitignore **/*.html
This can also be achieved by excluding using a file directly in the repository containing the regions