Package com.atlassian.bamboo.plan.branch
Class ChainBranchUtils
java.lang.Object
com.atlassian.bamboo.plan.branch.ChainBranchUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ImmutableJob
findJobByMasterId
(@NotNull ImmutableChain chain, long masterJobId) static @Nullable Job
getBranchedJob
(@NotNull Job masterJob, @NotNull Chain chain) static @Nullable String
getChainBranchName
(@NotNull CachedPlanManager cachedPlanManager, @NotNull CustomVariableContext customVariableContext, @NotNull PlanKey planKey) static @NotNull String
getChainBranchName
(@NotNull CustomVariableContext customVariableContext, @NotNull ImmutablePlan plan) static @NotNull String
getChainBranchNameWithoutContextChange
(@NotNull CustomVariableContext customVariableContext, @NotNull ImmutablePlan plan) static @Nullable String
getSubstitutedVcsBranchDisplayName
(@NotNull CustomVariableContext customVariableContext, @NotNull ImmutablePlan plan) Returns substituted branch name of a plan's default repository or null if there is no branch (eg.static @NotNull String
getSubstitutedVcsBranchDisplayName
(@NotNull com.atlassian.sal.api.message.I18nResolver i18nResolver, @NotNull CustomVariableContext customVariableContext, @NotNull ImmutablePlan plan) Returns substituted branch name of a plan's default repository or 'Default' if there is no branch (eg.static String
getSubstitutedVcsBranchDisplayNameWithoutContextChange
(@NotNull CustomVariableContext customVariableContext, @NotNull ImmutablePlan plan) static @Nullable String
getSubstitutedVcsBranchName
(@NotNull CustomVariableContext customVariableContext, @NotNull ImmutablePlan plan) static @NotNull String
getValidChainBranchName
(@NotNull VcsBranch newBranch) static @NotNull String
getValidChainBranchName
(@NotNull String vcsBranchName)
-
Method Details
-
getBranchedJob
-
findJobByMasterId
@Nullable public static @Nullable ImmutableJob findJobByMasterId(@NotNull @NotNull ImmutableChain chain, long masterJobId) -
getSubstitutedVcsBranchDisplayName
@Nullable public static @Nullable String getSubstitutedVcsBranchDisplayName(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ImmutablePlan plan) Returns substituted branch name of a plan's default repository or null if there is no branch (eg. because plan has no repository) -
getSubstitutedVcsBranchDisplayName
@NotNull public static @NotNull String getSubstitutedVcsBranchDisplayName(@NotNull @NotNull com.atlassian.sal.api.message.I18nResolver i18nResolver, @NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ImmutablePlan plan) Returns substituted branch name of a plan's default repository or 'Default' if there is no branch (eg. because plan has no repository) -
getSubstitutedVcsBranchDisplayNameWithoutContextChange
public static String getSubstitutedVcsBranchDisplayNameWithoutContextChange(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ImmutablePlan plan) -
getSubstitutedVcsBranchName
@Nullable public static @Nullable String getSubstitutedVcsBranchName(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ImmutablePlan plan) -
getChainBranchName
@Nullable public static @Nullable String getChainBranchName(@NotNull @NotNull CachedPlanManager cachedPlanManager, @NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull PlanKey planKey) -
getChainBranchName
@NotNull public static @NotNull String getChainBranchName(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ImmutablePlan plan) -
getChainBranchNameWithoutContextChange
@NotNull public static @NotNull String getChainBranchNameWithoutContextChange(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ImmutablePlan plan) -
getValidChainBranchName
-
getValidChainBranchName
-