Class ArtifactDownloaderTaskConfigurationHelper

java.lang.Object
com.atlassian.bamboo.plugin.ArtifactDownloaderTaskConfigurationHelper

public class ArtifactDownloaderTaskConfigurationHelper extends Object
  • Field Details

  • Method Details

    • getLocalPath

      public static String getLocalPath(@NotNull @NotNull Map<String,String> map, int i)
    • setLocalPath

      public static void setLocalPath(@NotNull @NotNull Map<String,String> map, int i, String localPath)
    • setBranchSelectionStrategy

      public static void setBranchSelectionStrategy(Map<String,Object> context, boolean custom)
    • getSourcePlanKey

      @Nullable public static <T> T getSourcePlanKey(@NotNull @NotNull Map<String,T> configuration)
    • setSourcePlanKey

      public static <T> void setSourcePlanKey(@NotNull @NotNull Map<String,T> map, @NotNull T value)
    • getCustomBranch

      @Nullable public static <T> T getCustomBranch(@NotNull @NotNull Map<String,T> configuration)
    • setCustomBranch

      public static <T> void setCustomBranch(@NotNull @NotNull Map<String,T> map, @Nullable T value)
    • setArtifactName

      public static <T> void setArtifactName(@NotNull @NotNull Map<String,T> map, int i, @NotNull T value)
    • setArtifactId

      public static <T> void setArtifactId(@NotNull @NotNull Map<String,T> map, int i, @NotNull T value)
    • getArtifactId

      public static long getArtifactId(@NotNull @NotNull Map<String,String> map, int i)
    • getArtifactName

      public static String getArtifactName(@NotNull @NotNull Map<String,String> map, int i)
    • getArtifactIdKey

      public static String getArtifactIdKey(int i)
    • getArtifactNameKey

      public static String getArtifactNameKey(int i)
    • getTransferKeys

      public static Iterable<String> getTransferKeys(@NotNull @NotNull Map<String,?> config)
    • getArtifactKeys

      public static Iterable<String> getArtifactKeys(@NotNull @NotNull Map<String,?> config)
    • getPathKeys

      public static Iterable<String> getPathKeys(@NotNull @NotNull Map<String,?> config)
    • getIndexFromKey

      public static int getIndexFromKey(@NotNull @NotNull String key)
      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)