Class StepsModel

java.lang.Object
io.jenkins.plugins.pipeline.models.AbstractModel
io.jenkins.plugins.pipeline.models.StepsModel
All Implemented Interfaces:
ParsableModelInterface

public class StepsModel extends AbstractModel implements ParsableModelInterface
Model Class for Jenkins Declarative Pipeline Steps Section
  • Field Details

  • Constructor Details

    • StepsModel

      public StepsModel(List<String> steps)
      Parameters:
      steps - List of Steps
    • StepsModel

      public StepsModel(Optional<ScriptModel> script)
      Parameters:
      script - ScriptModel
    • StepsModel

      public StepsModel(String steps)
      Parameters:
      steps - Step
  • Method Details

    • toGroovy

      public String toGroovy()
      Description copied from interface: ParsableModelInterface
      Convert model to Jenkins Declarative Pipeline Syntax
      Specified by:
      toGroovy in interface ParsableModelInterface
      Returns:
      Jenkins Declarative Pipeline Syntax
    • toGroovyForPostModel

      public String toGroovyForPostModel()
      Convert steps to Groovy Format for Post Section
      Returns:
      Steps in Groovy Format for Post Section