public class EnvStringParseHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkStringForMacro(hudson.tools.ToolInstaller installer,
String stringName,
String macroString)
Checks that all variables have been resolved.
|
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)
Substitutes string according to all node properties.
|
public static String substituteEnvVars(String macroString, hudson.EnvVars environment)
environment - Collection of environment variablesmacroString - Input path with macro calls@Nullable public static String substituteNodeVariables(@CheckForNull String macroString, @Nonnull hudson.model.Node node)
macroString - String to be substitutednode - Node whose properties provide available substitutionpublic 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
installer - The installer that's doing the checking.stringName - The human-friendly name of the string being checked.macroString - The string contents that should be checked.ExtraToolInstallersException - String validation failed (there are unresolved variables)Copyright © 2016–2020. All rights reserved.