Skip to content

Exclude directories from change detection #25

@blaz1

Description

@blaz1

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions