Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FIXED JENKINS-5764] maven incremental builds leave modules unbuilt
upon failure Originally-Committed-As: f4233876cdab86c7d19ecf3fcd8f0c530d39117f
- Loading branch information
Showing
3 changed files
with
120 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package hudson.maven; | ||
|
||
import hudson.model.Action; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
/** | ||
* Action which remembers all module which have not been built since the last successful build | ||
* though they should have been, because they have SCM changes since then. | ||
* | ||
* See JENKINS-5764 | ||
* | ||
* @author kutzi | ||
*/ | ||
public class UnbuiltModuleAction implements Action { | ||
|
||
private List<ModuleName> moduleNames = new ArrayList<ModuleName>(); | ||
|
||
public void addUnbuiltModule(ModuleName moduleName) { | ||
this.moduleNames.add(moduleName); | ||
} | ||
|
||
public boolean removeUnbuildModule(ModuleName moduleName) { | ||
return this.moduleNames.remove(moduleName); | ||
} | ||
|
||
public Collection<ModuleName> getUnbuildModules() { | ||
return this.moduleNames; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public String getIconFileName() { | ||
return null; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public String getDisplayName() { | ||
return "Unbuilt Modules"; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public String getUrlName() { | ||
return null; | ||
} | ||
|
||
} |