mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
[FIXED HUDSON-4624] Fixed in 1.329 - checks to be sure there's been a previous build before we try to get the changeset for a module
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22535 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
8a34a63e91
commit
30025bbf0b
2 files changed
+21
-4
No files matched your search
@@ -427,10 +427,11 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
|
||||
if (!MavenModuleSetBuild.this.getChangeSet().isEmptySet()
|
||||
&& project.isIncrementalBuild()) {
|
||||
// If there are changes for this module, add it.
|
||||
if ((!getChangeSetFor(m).isEmpty())
|
||||
// If the last actually-built build of this module wasn't a success,
|
||||
// add it - i.e., rebuild anything that failed/was unstable in the past.
|
||||
|| (mb.getPreviousBuiltBuild().getResult().isWorseThan(Result.SUCCESS))) {
|
||||
// Also add it if we've never seen this module before,
|
||||
// or if the previous build of this module failed or was unstable.
|
||||
if ((mb.getPreviousBuiltBuild() == null) ||
|
||||
(!getChangeSetFor(m).isEmpty())
|
||||
|| (mb.getPreviousBuiltBuild().getResult().isWorseThan(Result.SUCCESS))) {
|
||||
changedModules.add(m.getModuleName().toString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user