mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
adde a logging to find out why we aren't doing incremental build
This commit is contained in:
1 parent
c660ba57bc
commit
87e21359fc
1 file changed
+10
-3
@@ -702,9 +702,16 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
|
||||
boolean maven2_1orLater = new ComparableVersion (mavenVersion).compareTo( new ComparableVersion ("2.1") ) >= 0;
|
||||
boolean needsFullBuild = getPreviousCompletedBuild() != null &&
|
||||
getPreviousCompletedBuild().getAction(NeedsFullBuildAction.class) != null;
|
||||
if (project.isIncrementalBuild() && !needsFullBuild && maven2_1orLater && !changedModules.isEmpty()) {
|
||||
margs.add("-amd");
|
||||
margs.add("-pl", Util.join(changedModules, ","));
|
||||
if (project.isIncrementalBuild()) {
|
||||
if (!needsFullBuild && maven2_1orLater && !changedModules.isEmpty()) {
|
||||
margs.add("-amd");
|
||||
margs.add("-pl", Util.join(changedModules, ","));
|
||||
} else {
|
||||
if (LOGGER.isLoggable(Level.FINE)) {
|
||||
LOGGER.fine(String.format("Skipping incremental build: needsFullBuild=%s, maven2.1orLater=%s, changedModulesEmpty?=%s",
|
||||
needsFullBuild, maven2_1orLater, changedModules.isEmpty()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user