Class EnvironmentResolver

java.lang.Object
io.jenkins.plugins.util.EnvironmentResolver

public class EnvironmentResolver extends Object
Resolves environment parameters in a string value.
Author:
Ullrich Hafner
  • Constructor Details

    • EnvironmentResolver

      public EnvironmentResolver()
      Creates a new instance of EnvironmentResolver. Attempts up to RESOLVE_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 to resolveVariablesDepth times.
      Parameters:
      environment - environment variables
      nonExpandedValue - the value to expand
      Returns:
      the expanded value