Package com.bluersw
Class AgentParameterValue
java.lang.Object
hudson.model.ParameterValue
hudson.model.StringParameterValue
com.bluersw.AgentParameterValue
- All Implemented Interfaces:
Serializable
- Author:
- sunweisheng
- See Also:
-
Field Summary
Fields inherited from class hudson.model.StringParameterValue
valueFields inherited from class hudson.model.ParameterValue
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildEnvironment(Run<?, ?> build, EnvVars env) Adds environmental variables for the builds to the given map.createVariableResolver(AbstractBuild<?, ?> build) Returns a VariableResolver so that other components like Builders can perform variable substitution to reflect parameter values into the build process.getAssignedLabel(SubTask task) Controls where the build (that this parameter is submitted to) will happen.Methods inherited from class hudson.model.StringParameterValue
doTrim, equals, getShortDescription, getValue, hashCode, toStringMethods inherited from class hudson.model.ParameterValue
buildEnvVars, buildEnvVars, createBuildWrapper, getDefinition, getDescription, getFormattedDescription, getName, isSensitive, setDescription
-
Constructor Details
-
AgentParameterValue
-
-
Method Details
-
buildEnvironment
Adds environmental variables for the builds to the given map. This provides a means for a parameter to pass the parameter values to the build to be performed. When this method is invoked, the map already contains the current "planned export" list. The implementation is expected to add more values to this map (or do nothing)- Overrides:
buildEnvironmentin classStringParameterValue
-
getAssignedLabel
Controls where the build (that this parameter is submitted to) will happen.- Overrides:
getAssignedLabelin classParameterValue
-
createVariableResolver
Returns a VariableResolver so that other components like Builders can perform variable substitution to reflect parameter values into the build process. This is yet another means in which a ParameterValue can influence a build.- Overrides:
createVariableResolverin classStringParameterValue
-