Package com.atlassian.bamboo.plan.cache
Interface ImmutableJob
- All Superinterfaces:
BambooIdProvider,DescriptionProvider,ImmutableBuildable,ImmutableDeletable,ImmutableEntityWithOid,ImmutablePlan,NameProvider,PlanIdentifier,PlanKeyProvider,TaskContainer,Versionable
- All Known Subinterfaces:
Job
- All Known Implementing Classes:
DefaultJob,ImmutableJobImpl
Immutable, threadsafe cacheable version of
Job- Since:
- v4.0
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESSFields inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
NAME_DELIMITERFields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider
getPlanKey -
Method Summary
Modifier and TypeMethodDescription@NotNull List<? extends ImmutableArtifactDefinition> @NotNull List<? extends ImmutableArtifactSubscription> @NotNull RequirementSetReturn effective value ofRequirementSet, that is value that is considered when checking which agents and elastic images can build this Buildable.default BambooEntityTypeEntity type of this object, used inBambooEntityOid.Return the master plan if one exists.@NotNull ImmutableChain@NotNull RequirementSet@NotNull ImmutableChainStagegetStage()TheChainStagethat thisJobis a member ofbooleanIs part of divergent branch.Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescriptionMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOidMethods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
getAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getProject, getType, getVariables, hasMaster, isActive, isBusy, isExecuting, isMarkedForDeletionMethods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
getBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuildingMethods inherited from interface com.atlassian.bamboo.task.TaskContainer
getTaskDefinitionsMethods inherited from interface com.atlassian.bamboo.versioning.Versionable
getVersion
-
Method Details
-
getParent
-
getStage
TheChainStagethat thisJobis a member of- Returns:
- stage
-
getMaster
ImmutableJob getMaster()Description copied from interface:ImmutablePlanReturn the master plan if one exists. The master is the plan which this one is derived from. Configuration is pulled from the master if one exists.- Specified by:
getMasterin interfaceImmutablePlan- Returns:
- the master
Planif one exists.
-
getArtifactDefinitions
- Returns:
- list of produced artifacts
-
getArtifactSubscriptions
- Returns:
- list of artifact subscriptions
-
getRequirementSet
- Specified by:
getRequirementSetin interfaceImmutableBuildable
-
getEffectiveRequirementSet
Return effective value ofRequirementSet, that is value that is considered when checking which agents and elastic images can build this Buildable.- Specified by:
getEffectiveRequirementSetin interfaceImmutableBuildable- Returns:
- the same as
getRequirementSet()ifImmutablePlan.hasMaster()is false, getMaster().getRequirementSet() otherwise.
-
getEntityType
Description copied from interface:ImmutableEntityWithOidEntity type of this object, used inBambooEntityOid.- Specified by:
getEntityTypein interfaceImmutableEntityWithOid
-
isDivergent
boolean isDivergent()Is part of divergent branch.- Since:
- 7.0
-