Class WriteTOMLStep

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

    public class WriteTOMLStep
    extends org.jenkinsci.plugins.workflow.steps.Step
    Writes a LinkedHashMap object to file in the current working directory.
    • Constructor Detail

      • WriteTOMLStep

        @DataBoundConstructor
        public WriteTOMLStep​(Object toml)
    • Method Detail

      • getFile

        public String getFile()
        Returns the name of the file to write.
        Returns:
        the file name
      • setFile

        @DataBoundSetter
        public void setFile​(String file)
      • getTOML

        public Object getTOML()
        Return the toml object to save.
        Returns:
        an object
      • isReturnText

        public boolean isReturnText()
      • setReturnText

        @DataBoundSetter
        public void setReturnText​(boolean returnText)
      • 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