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
-
Method Summary
Modifier and TypeMethodDescriptionexpandEnvironmentVariables
(EnvVars environment, String nonExpandedValue) Resolves build parameters in the specified string value toresolveVariablesDepth
times.
-
Constructor Details
-
EnvironmentResolver
public EnvironmentResolver()Creates a new instance ofEnvironmentResolver
. Attempts up toRESOLVE_VARIABLE_DEPTH_DEFAULT
times to resolve a variable.
-
-
Method Details
-
expandEnvironmentVariables
public String expandEnvironmentVariables(@CheckForNull EnvVars environment, String nonExpandedValue) Resolves build parameters in the specified string value toresolveVariablesDepth
times.- Parameters:
environment
- environment variablesnonExpandedValue
- the value to expand- Returns:
- the expanded value
-