Class NewSingleJob
- java.lang.Object
-
- com.vectorcast.plugins.vectorcastexecution.job.BaseJob
-
- com.vectorcast.plugins.vectorcastexecution.job.NewSingleJob
-
public class NewSingleJob extends BaseJob
Create a new single job
-
-
Constructor Summary
Constructors Constructor Description NewSingleJob(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cleanupProject()
Cleanup top-level project, as in deleteprotected hudson.model.Project
createProject()
Create projectvoid
doCreate(boolean update)
Add build stepsString
getProjectName()
Get the name of the project-
Methods inherited from class com.vectorcast.plugins.vectorcastexecution.job.BaseJob
addArchiveArtifacts, addCopyResultsToImport, addCredentialID, addDeleteWorkspaceBeforeBuildStarts, addJunit, addPCLintPlus, addSetup, addVCCoverage, create, getBaseName, getEnvironmentSetupUnix, getEnvironmentSetupWin, getEnvironmentTeardownUnix, getEnvironmentTeardownWin, getExecutePreambleUnix, getExecutePreambleWin, getExternalResultsFilename, getInstance, getJobName, getManageProjectName, getMaxParallel, getNodeLabel, getOptionClean, getOptionErrorLevel, getOptionExecutionReport, getOptionHTMLBuildDesc, getOptionUseReporting, getPclpCommand, getPclpResultsPattern, getRequest, getResponse, getSquoreCommand, getTESTinsights_credentials_id, getTESTinsights_project, getTESTinsights_proxy, getTESTinsights_SCM_Tech, getTESTinsights_SCM_URL, getTESTinsights_URL, getTopProject, getUseCILicenses, getUseCILicensesUnix, getUseCILicensesWin, getUseCoverageHistory, getUseExternalImportedResults, getUseImportedResults, getUseLocalImportedResults, getUseStrictTestcaseImport, getWaitLoops, getWaitTime, isUsingSCM, setEnvironmentSetupUnix, setEnvironmentSetupWin, setEnvironmentTeardownUnix, setEnvironmentTeardownWin, setExecutePreambleUnix, setExecutePreambleWin, setExternalResultsFilename, setMaxParallel, setOptionClean, setOptionErrorLevel, setOptionExecutionReport, setOptionHTMLBuildDesc, setOptionUseReporting, setTESTinsights_project, setTESTinsights_SCM_Tech, setTESTinsights_SCM_URL, setUseCILicenses, setUseCoverageHistory, setUseExternalImportedResults, setUseImportedResults, setUseLocalImportedResults, setUseStrictTestcaseImport, setUsingSCM, useSavedData
-
-
-
-
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 objectresponse
- response object- Throws:
javax.servlet.ServletException
- exceptionIOException
- exceptionExternalResultsFileException
- exception
-
-
Method Detail
-
getProjectName
public String getProjectName()
Get the name of the project- Returns:
- the project name
-
createProject
protected hudson.model.Project createProject() throws IOException, JobAlreadyExistsException
Create project- Specified by:
createProject
in classBaseJob
- Returns:
- project
- Throws:
IOException
- exceptionJobAlreadyExistsException
- exception
-
doCreate
public void doCreate(boolean update) throws IOException, javax.servlet.ServletException, hudson.model.Descriptor.FormException
Add build steps- Specified by:
doCreate
in classBaseJob
- Parameters:
update
- true to update, false to not- Throws:
IOException
- exceptionjavax.servlet.ServletException
- exceptionhudson.model.Descriptor.FormException
- exception
-
cleanupProject
protected void cleanupProject()
Description copied from class:BaseJob
Cleanup top-level project, as in delete- Specified by:
cleanupProject
in classBaseJob
-
-