Package io.jenkins.plugins.util
Klasse EnvironmentResolver
java.lang.Object
io.jenkins.plugins.util.EnvironmentResolver
Resolves environment parameters in a string value.
- Autor:
- Ullrich Hafner
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungexpandEnvironmentVariables
(EnvVars environment, String nonExpandedValue) Resolves build parameters in the specified string value toresolveVariablesDepth
times.
-
Konstruktordetails
-
EnvironmentResolver
public EnvironmentResolver()Creates a new instance ofEnvironmentResolver
. Attempts up toRESOLVE_VARIABLE_DEPTH_DEFAULT
times to resolve a variable.
-
-
Methodendetails
-
expandEnvironmentVariables
public String expandEnvironmentVariables(@CheckForNull EnvVars environment, String nonExpandedValue) Resolves build parameters in the specified string value toresolveVariablesDepth
times.- Parameter:
environment
- environment variablesnonExpandedValue
- the value to expand- Gibt zurück:
- the expanded value
-