Package com.bluersw

Class AgentParameterValue

All Implemented Interfaces:
Serializable

public class AgentParameterValue extends StringParameterValue
Author:
sunweisheng
See Also:
  • Constructor Details

    • AgentParameterValue

      @DataBoundConstructor public AgentParameterValue(String name, String value)
  • Method Details

    • buildEnvironment

      public void buildEnvironment(Run<?,?> build, EnvVars env)
      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:
      buildEnvironment in class StringParameterValue
    • getAssignedLabel

      public Label getAssignedLabel(SubTask task)
      Controls where the build (that this parameter is submitted to) will happen.
      Overrides:
      getAssignedLabel in class ParameterValue
    • createVariableResolver

      public VariableResolver<String> createVariableResolver(AbstractBuild<?,?> build)
      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:
      createVariableResolver in class StringParameterValue