@Entity public class DefaultJob extends AbstractPlan implements Job, Buildable
| Modifier and Type | Field and Description |
|---|---|
static int |
NUMBER_OF_RESULTS |
resultsSummaryManagerMAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESSgetPlanKeyFunctiongetPlanKey| 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, setVariableDefinitionManagergetId, getOid, setId, setOidclone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitgetBuildDefinitionXml, getLabellings, getLatestResultsSummary, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setKey, setLabellings, setPlanKey, setProject, setSuspendedFromBuildingsetOidgetEntityType, getOidsetDescription, setNamesetMarkedForDeletionsetIdisMarkedForDeletiongetEntityTypegetBuildDefinition, getBuildLogger, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, getVariables, hasMaster, isBusy, isMarkedForDeletiongetBuildKey, getBuildName, getId, getMasterId, getPlanKey, isSuspendedFromBuildinggetDescriptionpublic 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()
PlanIdentifiergetName in interface PlanIdentifiergetName in interface DescriptionProvidergetName in interface NameProvidergetName in class AbstractPlan@NotNull public Chain getParent()
JobgetParent in interface JobgetParent in interface ImmutableJob@NotNull public ChainStage getStage()
JobChainStage that this Job is a member ofgetStage in interface JobgetStage in interface ImmutableJobpublic void setStage(@Nullable
ChainStage chainStage)
public Job getMaster()
ImmutablePlangetMaster in interface JobgetMaster in interface ImmutableJobgetMaster in interface ImmutablePlanPlan if one exists.public void setMaster(Plan master)
Planpublic boolean isActive()
ImmutablePlanisActive in interface ImmutablePlan@NotNull public String getCurrentStatus()
ImmutablePlangetCurrentStatus in interface ImmutablePlanpublic boolean isExecuting()
ImmutablePlanisExecuting in interface ImmutablePlan@NotNull public List<ArtifactDefinition> getArtifactDefinitions()
getArtifactDefinitions in interface JobgetArtifactDefinitions in interface ImmutableJob@NotNull public List<ArtifactSubscription> getArtifactSubscriptions()
getArtifactSubscriptions in interface JobgetArtifactSubscriptions in interface ImmutableJobpublic long getAverageBuildDuration()
ImmutablePlangetAverageBuildDuration in interface ImmutablePlan@NotNull public RequirementSet getRequirementSet()
getRequirementSet in interface ImmutableBuildablegetRequirementSet in interface ImmutableJobpublic void setRequirementSet(RequirementSet requirementSet)
setRequirementSet in interface Buildable@NotNull public RequirementSet getEffectiveRequirementSet()
ImmutableBuildableRequirementSet, that is value that is considered when checking which agents and elastic images
can build this Buildable.getEffectiveRequirementSet in interface ImmutableBuildablegetEffectiveRequirementSet in interface ImmutableJobImmutableBuildable.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.