-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
0
-
1
-
Problem Definition
Currently, the Repository Trigger for Stash/Bitbucket Server will trigger a build on any change in a repository. This can be an issue for users with large repositories, where a certain Build Plan only relates to a subdirectory.
Suggested Solution
Add functionality to trigger on changes to a specific subdirectory of a repository.
Workaround
In the Linked Repository settings, you can use the "Include/exclude files" option:
- Go to Administration >> Linked repositories
- Select your repository, or create a new one
- Under "Advanced options" select "Include only changes that matches to the following pattern"
- Input a regular expression to search for, which could be your subdirectory (you may need to escape some characters):
sub/directory/*
See also
Please see this Atlassian Answer for more detail and discussion on this workaround.
- relates to
-
BAM-15097 Allow for sparse Git checkouts
- Gathering Interest