Package com.atlassian.bamboo.plan.branch
Class ChainBranchUtils
java.lang.Object
com.atlassian.bamboo.plan.branch.ChainBranchUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ImmutableJobfindJobByMasterId(@NotNull ImmutableChain chain, long masterJobId) static @Nullable JobgetBranchedJob(@NotNull Job masterJob, @NotNull Chain chain) static @Nullable StringgetChainBranchName(@NotNull CachedPlanManager cachedPlanManager, @NotNull CustomVariableContext customVariableContext, @NotNull PlanKey planKey) static @NotNull StringgetChainBranchName(@NotNull CustomVariableContext customVariableContext, @NotNull ImmutablePlan plan) static @NotNull StringgetChainBranchNameWithoutContextChange(@NotNull CustomVariableContext customVariableContext, @NotNull ImmutablePlan plan) static @Nullable StringgetSubstitutedVcsBranchDisplayName(@NotNull CustomVariableContext customVariableContext, @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)static @NotNull StringgetSubstitutedVcsBranchDisplayName(@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. because plan has no repository)static StringgetSubstitutedVcsBranchDisplayNameWithoutContextChange(@NotNull CustomVariableContext customVariableContext, @NotNull ImmutablePlan plan) static @Nullable StringgetSubstitutedVcsBranchName(@NotNull CustomVariableContext customVariableContext, @NotNull ImmutablePlan plan) static @NotNull StringgetValidChainBranchName(@NotNull VcsBranch newBranch) static @NotNull StringgetValidChainBranchName(@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
-