public class ChainBranchUtils extends Object
Modifier and Type | Method and Description |
---|---|
static @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 String vcsBranchName) |
static @NotNull String |
getValidChainBranchName(@NotNull VcsBranch newBranch) |
@Nullable public static @Nullable Job getBranchedJob(@NotNull @NotNull Job masterJob, @NotNull @NotNull Chain chain)
@Nullable public static @Nullable ImmutableJob findJobByMasterId(@NotNull @NotNull ImmutableChain chain, long masterJobId)
@Nullable public static @Nullable String getSubstitutedVcsBranchDisplayName(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ImmutablePlan plan)
@NotNull public static @NotNull String getSubstitutedVcsBranchDisplayName(@NotNull @NotNull com.atlassian.sal.api.message.I18nResolver i18nResolver, @NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ImmutablePlan plan)
public static String getSubstitutedVcsBranchDisplayNameWithoutContextChange(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ImmutablePlan plan)
@Nullable public static @Nullable String getSubstitutedVcsBranchName(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ImmutablePlan plan)
@Nullable public static @Nullable String getChainBranchName(@NotNull @NotNull CachedPlanManager cachedPlanManager, @NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull PlanKey planKey)
@NotNull public static @NotNull String getChainBranchName(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ImmutablePlan plan)
@NotNull public static @NotNull String getChainBranchNameWithoutContextChange(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ImmutablePlan plan)
@NotNull public static @NotNull String getValidChainBranchName(@NotNull @NotNull VcsBranch newBranch)
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.