hudson.plugins.tfs.util
Class BuildVariableResolver
java.lang.Object
hudson.plugins.tfs.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:
- JOB_NAME - The name of the job
- 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 that is set on the Node that the Launcher is
being executed on (slave or master)
- Author:
- Erik Ramfelt
| 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 |
|
Constructor Summary |
BuildVariableResolver(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher)
Constructor that can be used with a AbstractBuild instance. |
BuildVariableResolver(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher)
|
|
Method Summary |
java.lang.String |
resolve(java.lang.String variable)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildVariableResolver
public BuildVariableResolver(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher)
BuildVariableResolver
public BuildVariableResolver(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher)
- Constructor that can be used with a AbstractBuild instance.
This constructor should not be called in a method that may be called by
AbstractBuild.getEnvVars().
- Parameters:
build - used to get the project and the build env varslauncher - launcher used to get the computer
resolve
public java.lang.String resolve(java.lang.String variable)
- Specified by:
resolve in interface hudson.util.VariableResolver<java.lang.String>
Copyright © 2008. All Rights Reserved.