hudson.plugins.clearcase.util
Class BuildVariableResolver
java.lang.Object
hudson.plugins.clearcase.util.BuildVariableResolver
- All Implemented Interfaces:
- hudson.util.VariableResolver<java.lang.String>
public class BuildVariableResolver
- extends java.lang.Object
- implements hudson.util.VariableResolver<java.lang.String>
A VariableResolver that resolves certain Build variables.
The build variable resolver will resolve the following:
- HOST - The name of the computer it is running on
- OS - Shorthand to "os.name" system property
- USER_NAME - The system property "user.name" on the Node that the Launcher is being executed on (slave or master)
- NODE_NAME - The name of the node that the Launcher is being executed on
- Any environment variable (system or build-scoped) that is set on the Node that the Launcher is being executed on
(slave or master)
Implementation note: This class is modelled after Erik Ramfelt's work in the Team Foundation Server Plugin. Maybe
they should be merged and moved to the hudson core
- Author:
- Henrik Lynggaard Hansen
| Nested classes/interfaces inherited from interface hudson.util.VariableResolver |
hudson.util.VariableResolver.ByMap<V>, hudson.util.VariableResolver.Union<V> |
| Fields inherited from interface hudson.util.VariableResolver |
NONE |
|
Method Summary |
java.lang.String |
resolve(java.lang.String key)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildVariableResolver
public BuildVariableResolver(hudson.model.AbstractBuild<?,?> build)
BuildVariableResolver
public BuildVariableResolver(hudson.model.AbstractBuild<?,?> build,
boolean restricted)
resolve
public java.lang.String resolve(java.lang.String key)
- Specified by:
resolve in interface hudson.util.VariableResolver<java.lang.String>
Copyright © 2011. All Rights Reserved.