@Entity public class DefaultJob extends AbstractPlan implements Job, Buildable
Modifier and Type | Field and Description |
---|---|
static int |
NUMBER_OF_RESULTS |
resultsSummaryManager
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
getPlanKeyFunction
getPlanKey
Constructor and Description |
---|
DefaultJob() |
Modifier and Type | Method and Description |
---|---|
List<ArtifactDefinition> |
getArtifactDefinitions() |
List<ArtifactSubscription> |
getArtifactSubscriptions() |
long |
getAverageBuildDuration()
Returns an average duration of the recent builds
|
BuildResultsSummaryManager |
getBuildResultsSummaryManager() |
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. |
Job |
getMaster()
Return the master plan if one exists.
|
String |
getName()
Returns the full name for the build in the form of "project name - build name" e.g.
|
Chain |
getParent()
|
PlanType |
getPlanType() |
RequirementSet |
getRequirementSet() |
ChainStage |
getStage()
The
ChainStage that this Job is a member of |
List<TaskDefinition> |
getTaskDefinitions() |
boolean |
isActive()
Is the plan queued or building?
|
boolean |
isExecuting()
Is the build currently being executed?
|
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) |
compareTo, equals, getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getDescription, getDiscriminator, getEffectiveVariables, getFirstBuildNumber, getKey, getLabellings, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getMasterId, getPlanKey, getProject, getRelatedLabellings, getTestClasses, getType, getVariables, hashCode, hasMaster, isBusy, isMarkedForDeletion, isSuspendedFromBuilding, setBuildDefinitionManager, setBuildDefinitionXml, setBuildKey, setBuildLoggerManager, setBuildName, setDescription, setDiscriminator, setKey, setLabellings, setLabelManager, setMarkedForDeletion, setName, setPlanExecutionManager, setPlanKey, setProject, setResultsSummaryManager, setSuspendedFromBuilding, setTestClasses, setVariableDefinitionManager
getId, getOid, setId, setOid
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getBuildDefinitionXml, getLabellings, getLatestResultsSummary, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setKey, setLabellings, setPlanKey, setProject, setSuspendedFromBuilding
setOid
getEntityType, getOid
setDescription, setName
setMarkedForDeletion
setId
isMarkedForDeletion
getEntityType
getBuildDefinition, getBuildLogger, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, getVariables, hasMaster, isBusy, isMarkedForDeletion
getBuildKey, getBuildName, getId, getMasterId, getPlanKey, isSuspendedFromBuilding
getDescription
public static final int NUMBER_OF_RESULTS
@NotNull public List<TaskDefinition> getTaskDefinitions()
getTaskDefinitions
in interface TaskContainer
@NotNull public PlanType getPlanType()
getPlanType
in interface PlanIdentifier
@NotNull public String getName()
PlanIdentifier
getName
in interface PlanIdentifier
getName
in interface DescriptionProvider
getName
in interface NameProvider
getName
in class AbstractPlan
@NotNull public Chain getParent()
Job
getParent
in interface Job
getParent
in interface ImmutableJob
@NotNull public ChainStage getStage()
Job
ChainStage
that this Job
is a member ofgetStage
in interface Job
getStage
in interface ImmutableJob
public void setStage(@Nullable ChainStage chainStage)
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
public boolean isActive()
ImmutablePlan
isActive
in interface ImmutablePlan
@NotNull public String getCurrentStatus()
ImmutablePlan
getCurrentStatus
in interface ImmutablePlan
public boolean isExecuting()
ImmutablePlan
isExecuting
in interface ImmutablePlan
@NotNull public List<ArtifactDefinition> getArtifactDefinitions()
getArtifactDefinitions
in interface Job
getArtifactDefinitions
in interface ImmutableJob
@NotNull public List<ArtifactSubscription> getArtifactSubscriptions()
getArtifactSubscriptions
in interface Job
getArtifactSubscriptions
in interface ImmutableJob
public long getAverageBuildDuration()
ImmutablePlan
getAverageBuildDuration
in interface ImmutablePlan
@NotNull public RequirementSet getRequirementSet()
getRequirementSet
in interface ImmutableBuildable
getRequirementSet
in interface ImmutableJob
public void setRequirementSet(RequirementSet requirementSet)
setRequirementSet
in interface Buildable
@NotNull public RequirementSet getEffectiveRequirementSet()
ImmutableBuildable
RequirementSet
, that is value that is considered when checking which agents and elastic images
can build this Buildable.getEffectiveRequirementSet
in interface ImmutableBuildable
getEffectiveRequirementSet
in interface ImmutableJob
ImmutableBuildable.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)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.