Class NewSingleJob


  • public class NewSingleJob
    extends BaseJob
    Create a new single job
    • Constructor Detail

      • NewSingleJob

        public NewSingleJob​(org.kohsuke.stapler.StaplerRequest request,
                            org.kohsuke.stapler.StaplerResponse response)
                     throws javax.servlet.ServletException,
                            IOException,
                            ExternalResultsFileException
        Constructor
        Parameters:
        request - request object
        response - response object
        Throws:
        javax.servlet.ServletException - exception
        IOException - exception
        ExternalResultsFileException - exception
    • Method Detail

      • getProjectName

        public String getProjectName()
        Get the name of the project
        Returns:
        the project name
      • doCreate

        public void doCreate​(boolean update)
                      throws IOException,
                             javax.servlet.ServletException,
                             hudson.model.Descriptor.FormException
        Add build steps
        Specified by:
        doCreate in class BaseJob
        Parameters:
        update - true to update, false to not
        Throws:
        IOException - exception
        javax.servlet.ServletException - exception
        hudson.model.Descriptor.FormException - exception
      • cleanupProject

        protected void cleanupProject()
        Description copied from class: BaseJob
        Cleanup top-level project, as in delete
        Specified by:
        cleanupProject in class BaseJob