Class PrependToFileStep

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

    public class PrependToFileStep
    extends org.jenkinsci.plugins.workflow.steps.Step
    Prepend given content to a given file.
    • Method Detail

      • getFile

        public String getFile()
        The file to prepend to.
        Returns:
        the file
      • getContent

        public String getContent()
        Gets the content to prepend.
        Returns:
        the content
      • 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