public class ToolVersion extends Object implements Serializable
| Modifier and Type | Field and Description | 
|---|---|
static String | 
DEFAULTS_SOURCE  | 
| Constructor and Description | 
|---|
ToolVersion(String variableName,
           String defaultVersion,
           String actualVersion,
           String versionSource)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getActualVersion()  | 
static ToolVersion | 
getDefaultToolVersion(CustomTool tool)
Retrieves the default  
CustomTool version. | 
String | 
getDefaultVersion()  | 
static ToolVersion | 
getEffectiveToolVersion(CustomTool tool,
                       EnvVars buildEnv,
                       Node node)
Method gets effective tool version for the build. 
 | 
String | 
getVariableName()  | 
String | 
getVersionSource()  | 
boolean | 
hasDefaultVersion()  | 
void | 
setDefaultVersion(String defaultVersion)  | 
String | 
toString()  | 
public static final String DEFAULTS_SOURCE
public ToolVersion(String variableName, @CheckForNull String defaultVersion, @CheckForNull String actualVersion, @CheckForNull String versionSource)
public boolean hasDefaultVersion()
@CheckForNull public String getDefaultVersion()
public void setDefaultVersion(@CheckForNull String defaultVersion)
public String getVariableName()
@CheckForNull public String getActualVersion()
@CheckForNull public String getVersionSource()
@CheckForNull public static ToolVersion getDefaultToolVersion(@Nonnull CustomTool tool)
CustomTool version.tool - Tool@CheckForNull public static ToolVersion getEffectiveToolVersion(CustomTool tool, EnvVars buildEnv, Node node)
tool - Custom toolbuildEnv - Current build environmentnode - Node, where the build runsCopyright © 2016–2021. All rights reserved.