Class EnvVarsForToolStep

java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.workflow.steps.AbstractStepImpl
org.jenkinsci.plugins.pipeline.modeldefinition.steps.EnvVarsForToolStep
All Implemented Interfaces:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>, Serializable

public final class EnvVarsForToolStep extends org.jenkinsci.plugins.workflow.steps.AbstractStepImpl implements Serializable
An internal step used to take a tool descriptor ID and tool version and get the environment variables that tool installation would normally contribute, in a List<String> of "VAR=VALUE"s suitable for passing to withEnv. Necessary to do this as a Step so as to have access to the node, listener and environment.
Author:
Andrew Bayer
See Also:
  • Constructor Details

    • EnvVarsForToolStep

      @DataBoundConstructor public EnvVarsForToolStep(String toolId, String toolVersion)
  • Method Details

    • getToolVersion

      public String getToolVersion()
    • getToolId

      public String getToolId()