Package com.atlassian.bamboo.plugin
Class ArtifactDownloaderTaskConfigurationHelper
java.lang.Object
com.atlassian.bamboo.plugin.ArtifactDownloaderTaskConfigurationHelper
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
calculateCustomBranchForPlan
(CustomVariableContext customVariableContext, ImmutablePlan immutablePlan) static @NotNull ImmutableChain
findBranchChainForCustomBranch
(@NotNull CustomVariableContext customVariableContext, @NotNull CachedPlanManager cachedPlanManager, @NotNull ChainBranchManager chainBranchManager, @NotNull ImmutableChain defaultPlan, @NotNull String customBranch) static @NotNull ImmutableChain
findBranchChainForCustomBranchOrFallbackToDefault
(@NotNull CustomVariableContext customVariableContext, @NotNull CachedPlanManager cachedPlanManager, @NotNull ChainBranchManager chainBranchManager, @NotNull ImmutableChain defaultPlan, @NotNull String customBranch) static long
getArtifactId
(@NotNull Map<String, String> map, int i) static String
getArtifactIdKey
(int i) getArtifactKeys
(@NotNull Map<String, ?> config) static String
getArtifactName
(@NotNull Map<String, String> map, int i) static String
getArtifactNameKey
(int i) static <T> T
getCustomBranch
(@NotNull Map<String, T> configuration) static int
getIndexFromKey
(@NotNull String key) Retrieves an index from a key.static String
getLocalPath
(@NotNull Map<String, String> map, int i) getPathKeys
(@NotNull Map<String, ?> config) static <T> T
getSourcePlanKey
(@NotNull Map<String, T> configuration) getTransferKeys
(@NotNull Map<String, ?> config) static boolean
isCustomBranchIndicatesDefaultNoRepoPlan
(ImmutableChain chain, String customBranch) static <T> void
setArtifactId
(@NotNull Map<String, T> map, int i, T value) static <T> void
setArtifactName
(@NotNull Map<String, T> map, int i, T value) static void
setBranchSelectionStrategy
(Map<String, Object> context, boolean custom) static <T> void
setCustomBranch
(@NotNull Map<String, T> map, T value) static void
setLocalPath
(@NotNull Map<String, String> map, int i, String localPath) static <T> void
setSourcePlanKey
(@NotNull Map<String, T> map, T value)
-
Field Details
-
SOURCE_PLAN_KEY
- See Also:
-
SOURCE_PLAN_BRANCH_KEY
- See Also:
-
SOURCE_CUSTOM_BRANCH_NAME
- See Also:
-
BRANCH_SELECTION_STRATEGY
- See Also:
-
BRANCH_SELECTION_DEFAULT_STRATEGY
- See Also:
-
BRANCH_SELECTION_CUSTOM_STRATEGY
- See Also:
-
CUSTOM_BRANCH_OF_PLAN_WITHOUT_REPO
- See Also:
-
ARTIFACT_ID
- See Also:
-
TRANSFER_ID
- See Also:
-
ARTIFACT_NAME
- See Also:
-
LOCAL_PATH
- See Also:
-
AVAILABLE_ARTIFACTS
- See Also:
-
ARTIFACT_CONTEXTS
- See Also:
-
-
Method Details
-
getLocalPath
-
setLocalPath
-
setBranchSelectionStrategy
-
getSourcePlanKey
-
setSourcePlanKey
-
getCustomBranch
-
setCustomBranch
-
setArtifactName
-
setArtifactId
-
getArtifactId
-
getArtifactName
-
getArtifactIdKey
-
getArtifactNameKey
-
getTransferKeys
-
getArtifactKeys
-
getPathKeys
-
getIndexFromKey
Retrieves an index from a key. For Some_Key_44 returns 44. -
isCustomBranchIndicatesDefaultNoRepoPlan
public static boolean isCustomBranchIndicatesDefaultNoRepoPlan(ImmutableChain chain, String customBranch) -
calculateCustomBranchForPlan
public static String calculateCustomBranchForPlan(CustomVariableContext customVariableContext, ImmutablePlan immutablePlan) -
findBranchChainForCustomBranch
@NotNull public static @NotNull ImmutableChain findBranchChainForCustomBranch(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull CachedPlanManager cachedPlanManager, @NotNull @NotNull ChainBranchManager chainBranchManager, @NotNull @NotNull ImmutableChain defaultPlan, @NotNull @NotNull String customBranch) -
findBranchChainForCustomBranchOrFallbackToDefault
@NotNull public static @NotNull ImmutableChain findBranchChainForCustomBranchOrFallbackToDefault(@NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull CachedPlanManager cachedPlanManager, @NotNull @NotNull ChainBranchManager chainBranchManager, @NotNull @NotNull ImmutableChain defaultPlan, @NotNull @NotNull String customBranch)
-