Package io.jenkins.plugins.util
Class EnvironmentResolver
java.lang.Object
io.jenkins.plugins.util.EnvironmentResolver
Resolves environment parameters in a string value.
- Author:
- Ullrich Hafner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpandEnvironmentVariables(EnvVars environment, String nonExpandedValue) Resolves build parameters in the specified string value toresolveVariablesDepthtimes.
-
Constructor Details
-
EnvironmentResolver
public EnvironmentResolver()Creates a new instance ofEnvironmentResolver. Attempts up toRESOLVE_VARIABLE_DEPTH_DEFAULTtimes to resolve a variable.
-
-
Method Details
-
expandEnvironmentVariables
public String expandEnvironmentVariables(@CheckForNull EnvVars environment, String nonExpandedValue) Resolves build parameters in the specified string value toresolveVariablesDepthtimes.- Parameters:
environment- environment variablesnonExpandedValue- the value to expand- Returns:
- the expanded value
-