|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.plan.AbstractPlan com.atlassian.bamboo.build.DefaultJob
public class DefaultJob
Field Summary | |
---|---|
static int |
NUMBER_OF_RESULTS
|
Fields inherited from class com.atlassian.bamboo.plan.AbstractPlan |
---|
resultsSummaryManager |
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan |
---|
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS |
Constructor Summary | |
---|---|
DefaultJob()
|
Method Summary | |
---|---|
void |
addBuildResultSummary(BuildResultsSummary buildResultsSummary)
Deprecated. |
java.util.List<ArtifactDefinition> |
getArtifactDefinitions()
|
java.util.List<ArtifactSubscription> |
getArtifactSubscriptions()
|
long |
getAverageBuildDuration()
Returns an average duration of the recent builds |
BuildResultsSummaryManager |
getBuildResultsSummaryManager()
|
java.util.List<BuildResultsSummary> |
getBuildResultSummaries()
Deprecated. |
java.lang.String |
getCurrentStatus()
Retuns a string key as to what the status is. |
RequirementSet |
getEffectiveRequirementSet()
Return effective value of RequirementSet , that is value that is considered when checking which agents and elastic images
can build this Buildable. |
BuildResultsSummary |
getFirstBuildSummary()
Deprecated. |
BuildResultsSummary |
getLatestBuildSummary()
Deprecated. |
Job |
getMaster()
Return the master plan if one exists. |
java.lang.String |
getName()
Returns the full name for the build in the form of "project name - build name" e.g. |
BuildResults |
getNextBuildResults(int buildNumber)
Deprecated. |
int |
getNumberOfConcurrentlyRunningBuilds()
Deprecated. |
Chain |
getParent()
The Chain that this Job is a member of |
PlanType |
getPlanType()
|
BuildResults |
getPreviousBuildResults(int buildNumber)
Deprecated. |
RequirementSet |
getRequirementSet()
|
ChainStage |
getStage()
The ChainStage that this Job is a member of |
boolean |
hasBuildResults()
Deprecated. |
boolean |
isActive()
Is the plan queued or building? |
boolean |
isExecuting()
Is the build currently being executed? |
void |
removeBuildResultSummary(int buildNumber)
Deprecated. |
void |
setArtifactDefinitionManager(ArtifactDefinitionManager artifactDefinitionManager)
|
void |
setArtifactSubscriptionManager(ArtifactSubscriptionManager artifactSubscriptionManager)
|
void |
setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
|
void |
setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
|
void |
setMaster(Plan master)
Set which plan is the master of this plan. |
void |
setRequirementSet(RequirementSet requirementSet)
|
void |
setStage(ChainStage chainStage)
|
ErrorCollection |
validateBuild()
Deprecated. |
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.plan.Plan |
---|
getLabellings, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setNextBuildNumber, setPlanKey, setProject, setSuspendedFromBuilding |
Methods inherited from interface com.atlassian.bamboo.Describable |
---|
setDescription, setName |
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable |
---|
setMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable |
---|
isMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan |
---|
getBuildDefinition, getBuildDefinitionXml, getBuildLogger, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getNextBuildNumber, getProject, getType, getVariables, hasMaster, hasTests, isBusy, isMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier |
---|
getBuildKey, getBuildName, getId, getPlanKey, isSuspendedFromBuilding |
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider |
---|
getDescription |
Field Detail |
---|
public static final int NUMBER_OF_RESULTS
Constructor Detail |
---|
public DefaultJob()
Method Detail |
---|
@NotNull public PlanType getPlanType()
getPlanType
in interface PlanIdentifier
@NotNull public java.lang.String getName()
PlanIdentifier
getName
in interface PlanIdentifier
getName
in interface DescriptionProvider
getName
in interface NameProvider
getName
in class AbstractPlan
@NotNull public Chain getParent()
Job
Chain
that this Job
is a member of
getParent
in interface Job
getParent
in interface ImmutableJob
@NotNull public ChainStage getStage()
Job
ChainStage
that this Job
is a member of
getStage
in interface Job
getStage
in interface ImmutableJob
public void setStage(@NotNull ChainStage chainStage)
setStage
in interface Job
public Job getMaster()
ImmutablePlan
getMaster
in interface Job
getMaster
in interface ImmutableJob
getMaster
in interface ImmutablePlan
Plan
if one exists.public void setMaster(Plan master)
Plan
setMaster
in interface Plan
public boolean isActive()
ImmutablePlan
isActive
in interface ImmutablePlan
@NotNull public java.lang.String getCurrentStatus()
ImmutablePlan
getCurrentStatus
in interface ImmutablePlan
public boolean isExecuting()
ImmutablePlan
isExecuting
in interface ImmutablePlan
@NotNull public java.util.List<ArtifactDefinition> getArtifactDefinitions()
getArtifactDefinitions
in interface ImmutableJob
@NotNull public java.util.List<ArtifactSubscription> getArtifactSubscriptions()
getArtifactSubscriptions
in interface ImmutableJob
public long getAverageBuildDuration()
ImmutablePlan
getAverageBuildDuration
in interface ImmutablePlan
@NotNull public RequirementSet getRequirementSet()
getRequirementSet
in interface Buildable
getRequirementSet
in interface ImmutableJob
public void setRequirementSet(RequirementSet requirementSet)
setRequirementSet
in interface Buildable
@NotNull public RequirementSet getEffectiveRequirementSet()
Buildable
RequirementSet
, that is value that is considered when checking which agents and elastic images
can build this Buildable.
getEffectiveRequirementSet
in interface Buildable
getEffectiveRequirementSet
in interface ImmutableJob
Buildable.getRequirementSet()
if ImmutablePlan.hasMaster()
is false, getMaster().getRequirementSet() otherwise.public void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
public BuildResultsSummaryManager getBuildResultsSummaryManager()
public void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
public void setArtifactDefinitionManager(ArtifactDefinitionManager artifactDefinitionManager)
public void setArtifactSubscriptionManager(ArtifactSubscriptionManager artifactSubscriptionManager)
@Deprecated public java.util.List<BuildResultsSummary> getBuildResultSummaries()
getBuildResultSummaries
in interface Buildable
@Deprecated public BuildResultsSummary getLatestBuildSummary()
getLatestBuildSummary
in interface Buildable
@Deprecated public int getNumberOfConcurrentlyRunningBuilds()
getNumberOfConcurrentlyRunningBuilds
in interface Buildable
@Deprecated public BuildResultsSummary getFirstBuildSummary()
getFirstBuildSummary
in interface Buildable
@Deprecated public void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
addBuildResultSummary
in interface Buildable
@Deprecated public void removeBuildResultSummary(int buildNumber)
removeBuildResultSummary
in interface Buildable
@Deprecated @Nullable public BuildResults getPreviousBuildResults(int buildNumber)
getPreviousBuildResults
in interface Buildable
@Deprecated @Nullable public BuildResults getNextBuildResults(int buildNumber)
getNextBuildResults
in interface Buildable
@Deprecated public boolean hasBuildResults()
hasBuildResults
in interface Buildable
@Deprecated public ErrorCollection validateBuild()
Plan
validateBuild
in interface Plan
ErrorCollection
with relevent error messages
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |