Class ResourceStep

  • All Implemented Interfaces:
    ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>

    public class ResourceStep
    extends org.jenkinsci.plugins.workflow.steps.Step
    Step to load a resource from a library.
    • Constructor Detail

      • ResourceStep

        @DataBoundConstructor
        public ResourceStep​(String resource)
    • Method Detail

      • getResource

        public String getResource()
      • getEncoding

        @CheckForNull
        public String getEncoding()
      • setEncoding

        @DataBoundSetter
        public void setEncoding​(String encoding)
        Set the encoding to be used when loading the resource. If the specified value is null or whitespace-only, then the platform default encoding will be used. Binary resources can be loaded as a Base64-encoded string by specifying Base64 as the encoding.
      • start

        public org.jenkinsci.plugins.workflow.steps.StepExecution start​(org.jenkinsci.plugins.workflow.steps.StepContext context)
                                                                 throws Exception
        Specified by:
        start in class org.jenkinsci.plugins.workflow.steps.Step
        Throws:
        Exception