@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
NAME_DELIMITER
getPlanKey
Constructor and Description |
---|
DefaultJob() |
Modifier and Type | Method and Description |
---|---|
@NotNull List<ArtifactDefinition> |
getArtifactDefinitions() |
@NotNull List<ArtifactSubscription> |
getArtifactSubscriptions() |
long |
getAverageBuildDuration()
Returns an average duration of the recent builds
|
BuildResultsSummaryManager |
getBuildResultsSummaryManager() |
@NotNull String |
getCurrentStatus() |
@NotNull 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.
|
@NotNull String |
getName()
Returns the full name for the build in the form of "project name - build name" e.g.
|
@NotNull Chain |
getParent()
|
@NotNull PlanType |
getPlanType() |
@NotNull RequirementSet |
getRequirementSet() |
@NotNull ChainStage |
getStage()
The
ChainStage that this Job is a member of |
@NotNull List<TaskDefinition> |
getTaskDefinitions() |
boolean |
isActive()
Is the plan queued or building?
|
boolean |
isDivergent()
Is part of divergent branch.
|
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(@Nullable ChainStage chainStage) |
compareTo, equals, getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getDatabaseId, getDescription, getDiscriminator, getEffectiveVariables, getFirstBuildNumber, getKey, getLabellings, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getMasterId, getMasterIdIfExists, getPlanKey, getProject, getRelatedLabellings, getType, getVariables, hashCode, hasMaster, isBusy, isMarkedForDeletion, isSuspendedFromBuilding, setBuildDefinitionManager, setBuildDefinitionXml, setBuildKey, setBuildLoggerManager, setBuildName, setDescription, setDiscriminator, setKey, setLabellings, setLabelManager, setMarkedForDeletion, setName, setPlanExecutionManager, setPlanKey, setProject, setResultsSummaryManager, setSuspendedFromBuilding, 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
getEntityType
getBuildDefinition, getBuildLogger, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, getVariables, hasMaster, isBusy, isMarkedForDeletion
getBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getPlanKey, isSuspendedFromBuilding
getDescription
public static final int NUMBER_OF_RESULTS
@NotNull public @NotNull List<TaskDefinition> getTaskDefinitions()
getTaskDefinitions
in interface TaskContainer
@NotNull public @NotNull PlanType getPlanType()
getPlanType
in interface PlanIdentifier
@NotNull public @NotNull String getName()
PlanIdentifier
getName
in interface PlanIdentifier
getName
in interface DescriptionProvider
getName
in interface NameProvider
getName
in class AbstractPlan
@NotNull public @NotNull Chain getParent()
Job
getParent
in interface Job
getParent
in interface ImmutableJob
@NotNull public @NotNull ChainStage getStage()
Job
ChainStage
that this Job
is a member ofgetStage
in interface Job
getStage
in interface ImmutableJob
public void setStage(@Nullable @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 @NotNull String getCurrentStatus()
getCurrentStatus
in interface ImmutablePlan
public boolean isExecuting()
ImmutablePlan
isExecuting
in interface ImmutablePlan
@NotNull public @NotNull List<ArtifactDefinition> getArtifactDefinitions()
getArtifactDefinitions
in interface Job
getArtifactDefinitions
in interface ImmutableJob
@NotNull public @NotNull List<ArtifactSubscription> getArtifactSubscriptions()
getArtifactSubscriptions
in interface Job
getArtifactSubscriptions
in interface ImmutableJob
public long getAverageBuildDuration()
ImmutablePlan
getAverageBuildDuration
in interface ImmutablePlan
@NotNull public @NotNull RequirementSet getRequirementSet()
getRequirementSet
in interface ImmutableBuildable
getRequirementSet
in interface ImmutableJob
public void setRequirementSet(RequirementSet requirementSet)
setRequirementSet
in interface Buildable
@NotNull public @NotNull 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)
public boolean isDivergent()
ImmutableJob
isDivergent
in interface ImmutableJob
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.