Class WriteCSVStep

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

    public class WriteCSVStep
    extends org.jenkinsci.plugins.workflow.steps.Step
    Writes a List of String Arrays to file in the current working directory.
    Author:
    Stuart Rowe
    • Constructor Detail

      • WriteCSVStep

        @DataBoundConstructor
        public WriteCSVStep​(String file,
                            Iterable<?> records)
    • Method Detail

      • getFile

        public String getFile()
      • getRecords

        public Iterable<?> getRecords()
      • getFormat

        public org.apache.commons.csv.CSVFormat getFormat()
      • setFormat

        @DataBoundSetter
        public void setFormat​(org.apache.commons.csv.CSVFormat format)
      • 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