Class ConverterRequest

java.lang.Object
io.jenkins.plugins.todeclarative.converter.api.ConverterRequest

public class ConverterRequest extends Object
Contains data needed for converting a Job to a declarative pipeline
  • Constructor Details

    • ConverterRequest

      public ConverterRequest()
  • Method Details

    • getJob

      public Job getJob()
    • setJob

      public void setJob(Job job)
    • job

      public ConverterRequest job(Job job)
    • isCreateNewProject

      public boolean isCreateNewProject()
    • setCreateNewProject

      public void setCreateNewProject(boolean createNewProject)
    • createNewProject

      public ConverterRequest createNewProject(boolean createNewProject)
    • getAndIncrement

      public int getAndIncrement(String key)
      convenient method to have a counter associated with a key.
      Parameters:
      key - the counter key
      Returns:
      retrieve the counter value and add 1