Class VariableUtils
java.lang.Object
com.atlassian.bamboo.specs.api.util.VariableUtils
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsVariableUsage
(@NotNull String text) Returns true if the given text contains variable usages from any namespace.static @NotNull List<VariableUtils.VariableUsage>
findVariableUsages
(@NotNull String text) Finds all variable usages within a given text.static boolean
isPasswordVariable
(@NotNull String variableKey)
-
Method Details
-
containsVariableUsage
Returns true if the given text contains variable usages from any namespace.
Variable usage consists of variable name, preceded by the namespace (usually "bamboo"), put between "${" and "}".
Example variable usages:- ${bamboo.my.custom.variable} - ${bamboo.functionalTestOptions} - ${system.M2_HOME}
- Parameters:
text
- text to verify- Returns:
- true, if text contains variable usages, false otherwise
-
findVariableUsages
@NotNull public static @NotNull List<VariableUtils.VariableUsage> findVariableUsages(@NotNull @NotNull String text) Finds all variable usages within a given text. -
isPasswordVariable
-