Class WriteFileStep

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

    public final class WriteFileStep
    extends org.jenkinsci.plugins.workflow.steps.Step
    • Constructor Detail

      • WriteFileStep

        public WriteFileStep​(String file,
                             String text)
    • Method Detail

      • getFile

        public String getFile()
      • getText

        public String getText()
      • getEncoding

        public String getEncoding()
      • setEncoding

        public void setEncoding​(String encoding)
        Set the encoding to be used when writing the file. If the specified value is null or whitespace-only, then the platform default encoding will be used. If the text is a Base64-encoded string, the decoded binary data can be written to the file 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