public class EnvStringParseHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkStringForMacro(hudson.tools.ToolInstaller installer,
String stringName,
String macroString)
Resolves tools installation directory using global variables.
|
static String |
substituteEnvVars(String macroString,
hudson.EnvVars environment)
Resolves tools installation directory using global variables.
|
static String |
substituteNodeProperty(String macroString,
hudson.slaves.NodeProperty<?> property)
Substitutes string according to node property.
|
static String |
substituteNodeVariables(String macroString,
hudson.model.Node node) |
static String |
substituteNodeVariablesValidated(hudson.tools.ToolInstaller installer,
String stringName,
String macroString,
hudson.model.Node node) |
public static String substituteEnvVars(String macroString, hudson.EnvVars environment)
environment - Collection of environment variablesmacroString - Input path with macro callspublic static String substituteNodeVariablesValidated(hudson.tools.ToolInstaller installer, String stringName, String macroString, hudson.model.Node node) throws ExtraToolInstallersException
ExtraToolInstallersExceptionpublic static String substituteNodeVariables(String macroString, hudson.model.Node node)
public static String substituteNodeProperty(String macroString, hudson.slaves.NodeProperty<?> property)
macroString - String to be substitutedproperty - Node propertypublic static void checkStringForMacro(hudson.tools.ToolInstaller installer,
String stringName,
String macroString)
throws ExtraToolInstallersException
macroString - Input path with macro callsExtraToolInstallersException - String validation failed (there are unresolved variables)Copyright © 2004-2013. All Rights Reserved.