Class ChainBranchUtils

java.lang.Object
com.atlassian.bamboo.plan.branch.ChainBranchUtils

public class ChainBranchUtils extends Object
  • Method Details

    • getBranchedJob

      @Nullable public static @Nullable Job getBranchedJob(@NotNull @NotNull Job masterJob, @NotNull @NotNull Chain chain)
    • 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

      @NotNull public static @NotNull String getValidChainBranchName(@NotNull @NotNull VcsBranch newBranch)
    • getValidChainBranchName

      @NotNull public static @NotNull String getValidChainBranchName(@NotNull @NotNull String vcsBranchName)