-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Imagine following project structure:
Project
- documentation/...
- kubernetes_configuration/...
- Module_A/...
- Module_B/...
- Module_C/...
- pom.xml
- gitlab-ci.yml (*configures gitlab pipeline*)
Using partial-build-plugin
, if any changes are done to documentation/...
, kubernetes_configuration/...
or gitlab-ci.yml
, the whole project (all 3 modules) gets rebuilt. But the mentioned changes are completely irrelevant to the maven build process and also do not directly affect the application or modules. Thus, making documentation changes unneccesarily triggers a complete rebuild.
I think this is because the code in ChangedProjects::findProject goes to the root EAR project if it doesn't find any module before reaching the root folder.
To avoid this, an additional configuration option could be provided, that would accept comma separated list of directories to ignore when deciding what to rebuild. Wildcard support would be an added benefit. For before mentioned project structure it could look like:
<ignore>documentation,kubernetes_configuration,gitlab-ci.yml</ignore>