Class 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:
    Serialized Form
    • Constructor Detail

      • EnvVarsForToolStep

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

      • getToolVersion

        public String getToolVersion()
      • getToolId

        public String getToolId()