Package com.atlassian.bamboo.clover
Class CloverPluginHelper
- java.lang.Object
-
- com.atlassian.bamboo.clover.CloverPluginHelper
-
public class CloverPluginHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
BANDANA_KEY_GLOBAL_LICENSE_KEY
static Predicate<ImmutablePlan>
isCloverEnabledForPlan
-
Constructor Summary
Constructors Constructor Description CloverPluginHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable com.atlassian.extras.api.ProductLicense
getCloverProductLicense(String licenseKey)
static @NotNull String
getGlobalLicenseKey(@NotNull com.atlassian.bandana.BandanaManager bandanaManager)
Retrieve global Clover license keystatic boolean
hasGlobalLicenseKey(@NotNull com.atlassian.bandana.BandanaManager bandanaManager)
Check if global Clover license has been definedstatic boolean
hasValidGlobalLicenseKey(@NotNull com.atlassian.bandana.BandanaManager bandanaManager)
Check if global Clover license has been defined and is validstatic boolean
isAutoIntegrate(@Nullable BuildConfiguration config)
Test if Build Configuration says "Automatically integrate Clover into build"static boolean
isAutoIntegrate(@Nullable Map<String,String> config)
Test if parameter map says "Automatically integrate Clover into build"static boolean
isCloverOn(@Nullable BuildConfiguration config)
static boolean
isCloverOn(@Nullable Map<String,String> config)
static boolean
isHistorical(@Nullable Map<String,String> config)
static boolean
isIntegrateUsingAtlassianClover(@Nullable Map<String,String> config)
static boolean
isIntegrateUsingAtlassianClover(TaskContext taskContext)
static boolean
isJson(@Nullable Map<String,String> config)
static boolean
isValidLicenseKey(String licenseKey)
Test if provided Clover license key is validstatic void
setGlobalLicenseKey(@NotNull com.atlassian.bandana.BandanaManager bandanaManager, @NotNull String globalLicenseKey)
Set global Clover license
-
-
-
Field Detail
-
BANDANA_KEY_GLOBAL_LICENSE_KEY
public static final String BANDANA_KEY_GLOBAL_LICENSE_KEY
- See Also:
- Constant Field Values
-
isCloverEnabledForPlan
public static final Predicate<ImmutablePlan> isCloverEnabledForPlan
-
-
Method Detail
-
isAutoIntegrate
public static boolean isAutoIntegrate(@Nullable @Nullable BuildConfiguration config)
Test if Build Configuration says "Automatically integrate Clover into build"- Parameters:
config
- BuildConfiguration object- Returns:
- True if BuildConfiguration enables Clover auto configuration
-
isAutoIntegrate
public static boolean isAutoIntegrate(@Nullable @Nullable Map<String,String> config)
Test if parameter map says "Automatically integrate Clover into build"- Parameters:
config
- Parameter map- Returns:
- True if parameter map enables Clover auto configuration
-
isCloverOn
public static boolean isCloverOn(@Nullable @Nullable BuildConfiguration config)
-
isIntegrateUsingAtlassianClover
public static boolean isIntegrateUsingAtlassianClover(TaskContext taskContext)
-
isIntegrateUsingAtlassianClover
public static boolean isIntegrateUsingAtlassianClover(@Nullable @Nullable Map<String,String> config)
-
hasGlobalLicenseKey
public static boolean hasGlobalLicenseKey(@NotNull @NotNull com.atlassian.bandana.BandanaManager bandanaManager)
Check if global Clover license has been defined- Parameters:
bandanaManager
- BandanaManager object- Returns:
- True if global Clover license has been defined
-
hasValidGlobalLicenseKey
public static boolean hasValidGlobalLicenseKey(@NotNull @NotNull com.atlassian.bandana.BandanaManager bandanaManager)
Check if global Clover license has been defined and is valid- Parameters:
bandanaManager
- BandanaManager object- Returns:
- True if global Clover license has been defined
-
isValidLicenseKey
public static boolean isValidLicenseKey(String licenseKey)
Test if provided Clover license key is valid- Parameters:
licenseKey
- Clover license key- Returns:
- True if license key is valid
-
getCloverProductLicense
@Nullable public static @Nullable com.atlassian.extras.api.ProductLicense getCloverProductLicense(String licenseKey)
-
getGlobalLicenseKey
@NotNull public static @NotNull String getGlobalLicenseKey(@NotNull @NotNull com.atlassian.bandana.BandanaManager bandanaManager)
Retrieve global Clover license key- Parameters:
bandanaManager
- BandanaManager object- Returns:
- Global Clover license or empty string if not defined.
-
setGlobalLicenseKey
public static void setGlobalLicenseKey(@NotNull @NotNull com.atlassian.bandana.BandanaManager bandanaManager, @NotNull @NotNull String globalLicenseKey)
Set global Clover license- Parameters:
bandanaManager
- BandanaManager objectglobalLicenseKey
- Clover global license key to be stored
-
-