Class PrependToFileStep

java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.pipeline.utility.steps.fs.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.
  • Constructor Details

  • Method Details

    • 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