lesfurets / partial-build-plugin

A maven plugin for partially building multi-module projects based on changes in the Git repository.
MIT License
40 stars 13 forks source link

Adding option to specify a commit SHA as base reference #31

Closed SimonGourdeau closed 4 years ago

SimonGourdeau commented 5 years ago

In our CI pipeline, we need to be able to perform a partial build based on the latest successful pipeline. Using a branch HEAD as reference decreases the gains of the partial build as the two diverge more and more over time. Let me know how it looks!

ozangunalp commented 5 years ago

As I remember you can already pass a commit hash as the reference. I remember at least one use case as such. I'll check and let you know.

SimonGourdeau commented 5 years ago

It's very nice if it's already supported, but I couldn't figure out how to do it from the documentation 😄

SimonGourdeau commented 5 years ago

@ozangunalp Have you had a chance to look at this? :)

ozangunalp commented 5 years ago

I checked it :) You can pass a commit hash as the reference branch. The doc inaccurately defines option referenceBranch as 'To' end of branch comparison. Branch name or refspec.

Did you tested it yourself ?