Until now we used to process multibranch maven projects with the Multi-Branch Project Plugin which under the hood uses the maven-project-plugin for maven builds.

      This maven-project-plugin has this great feature for doing incremental builds - meaning just rebuild the maven modules which have changed in the SCM since the last build. We used this feature heavily beacause we have many multimodule maven projects (also multi levels) and this feature could decrease build times fundamentally.

      Now the Multi-Branch Project Plugin is deprecated and we are advised to move to the Pipeline-Multibranch Plugin. This plugin uses the pipeline-maven-plugin under the hood for maven builds. In this plugin we are missing an incremental build mechanism. Build times would increase dramatically.

      Is there any hope to get this feaure also into the pipeline-maven-plugin?

      Thanks and best Regards

      Christian

          [JENKINS-60496] Support for incremental maven module build

          Olivier Lamy added a comment -

          The incremental feature from maven-plugin relies on using same node .

          So it's a bit complicated especially now more users are using k8s temporary nodes.

          I would recommend you use the new https://maven.apache.org/extensions/maven-build-cache-extension/ this will work as incremental especially using remote cache feature.

          The Jetty project (branch jetty-12.0.x) is using this feature and it definitely reduce build time especially when working on branches/PRs with the multibranch jenkins plugin. (see Jenkinsfile here https://github.com/eclipse/jetty.project/blob/jetty-12.0.x/Jenkinsfile)

          My recommendation would be to close this as Won't fix and use the maven cache extension

          Olivier Lamy added a comment - The incremental feature from maven-plugin relies on using same node . So it's a bit complicated especially now more users are using k8s temporary nodes. I would recommend you use the new https://maven.apache.org/extensions/maven-build-cache-extension/ this will work as incremental especially using remote cache feature. The Jetty project (branch jetty-12.0.x) is using this feature and it definitely reduce build time especially when working on branches/PRs with the multibranch jenkins plugin. (see Jenkinsfile here https://github.com/eclipse/jetty.project/blob/jetty-12.0.x/Jenkinsfile ) My recommendation would be to close this as Won't fix and use the maven cache extension

            olamy Olivier Lamy
            catsem Christian Schmitt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: