public static class BuildMemory.MemoryImprint extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BuildMemory.MemoryImprint.Entry
A project-build entry in the list of a MemoryImprint.
|
Constructor and Description |
---|
BuildMemory.MemoryImprint(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
Constructor.
|
BuildMemory.MemoryImprint(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event,
hudson.model.AbstractProject project)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areAllBuildResultsSkipped()
If all entry's results are configured to be skipped.
|
BuildsStartedStats |
getBuildsStartedStats()
Gets the statistics about builds started.
|
BuildMemory.MemoryImprint.Entry[] |
getEntries()
A list of Project-Build tuple entries.
|
com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent |
getEvent()
The event.
|
String |
getStatusReport()
Returns a string describing the projects and builds status in this memory.
|
boolean |
isAllBuildsCompleted()
Tells if all builds have Completed.
|
boolean |
isAllBuildsSet()
Tells if all builds have a value (not null).
|
protected void |
reset(hudson.model.AbstractProject project)
Resets the build info for the project.
|
protected void |
set(hudson.model.AbstractProject project)
Adds the project to the list.
|
protected void |
set(hudson.model.AbstractProject project,
hudson.model.AbstractBuild build)
Sets the build to a project or adds the project to the list.
|
boolean |
wereAllBuildsNotBuilt()
Tells if all builds in the memory were not built.
|
boolean |
wereAllBuildsSuccessful()
Tells if all builds in the memory were successful.
|
boolean |
wereAnyBuildsFailed()
Returns if any started and completed build has the result
Result.FAILURE . |
boolean |
wereAnyBuildsUnstable()
Returns if any started and completed build has the result
Result.UNSTABLE . |
public BuildMemory.MemoryImprint(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
event
- the event.public BuildMemory.MemoryImprint(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, hudson.model.AbstractProject project)
event
- the event.project
- the first project.public com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent getEvent()
public BuildMemory.MemoryImprint.Entry[] getEntries()
protected void set(hudson.model.AbstractProject project, hudson.model.AbstractBuild build)
project
- the project.build
- the build.protected void set(hudson.model.AbstractProject project)
project
- the project.protected void reset(hudson.model.AbstractProject project)
set(hudson.model.AbstractProject)
.project
- the project to reset.public boolean isAllBuildsSet()
public boolean isAllBuildsCompleted()
public String getStatusReport()
public BuildsStartedStats getBuildsStartedStats()
public boolean areAllBuildResultsSkipped()
wereAllBuildsSuccessful()
public boolean wereAllBuildsSuccessful()
Result.SUCCESS
.public boolean wereAnyBuildsFailed()
Result.FAILURE
.public boolean wereAnyBuildsUnstable()
Result.UNSTABLE
.public boolean wereAllBuildsNotBuilt()
Result.NOT_BUILT
.Copyright © 2004-2015. All Rights Reserved.