Package hudson.plugins.octopusdeploy
Class EnvironmentVariableValueInjector
- java.lang.Object
-
- hudson.plugins.octopusdeploy.EnvironmentVariableValueInjector
-
public class EnvironmentVariableValueInjector extends java.lang.Object
Injects environment variable values into a string.
-
-
Constructor Summary
Constructors Constructor Description EnvironmentVariableValueInjector(hudson.util.VariableResolver resolver, hudson.EnvVars environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
injectEnvironmentVariableValues(java.lang.String candidate)
Takes a string possibly containing tokens that represent Environment Variables and replaces them with the variables' values.
-
-
-
Method Detail
-
injectEnvironmentVariableValues
public java.lang.String injectEnvironmentVariableValues(java.lang.String candidate)
Takes a string possibly containing tokens that represent Environment Variables and replaces them with the variables' values. If the variable is not defined, the token is not replaced. First looks in environment variables, then looks at the build variable resolver for values.- Parameters:
candidate
- the candidate string possibly containing env tokens.- Returns:
- a new string with all possible tokens replaced with values.
-
-