Class NewPipelineJob
- java.lang.Object
-
- com.vectorcast.plugins.vectorcastexecution.job.BaseJob
-
- com.vectorcast.plugins.vectorcastexecution.job.NewPipelineJob
-
public class NewPipelineJob extends BaseJob
Create a new single job
-
-
Constructor Summary
Constructors Constructor Description NewPipelineJob(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 deletevoid
create(boolean update)
Create the Pipeline Jenkinsfile scriptprotected hudson.model.Project
createProject()
Create projectvoid
doCreate(boolean update)
Add build stepsString
getProjectName()
Get the name of the projectprotected String
getSharedArtifactDirectory()
Get getSharedArtifactDirectory-
Methods inherited from class com.vectorcast.plugins.vectorcastexecution.job.BaseJob
addArchiveArtifacts, addCopyResultsToImport, addCredentialID, addDeleteWorkspaceBeforeBuildStarts, addJunit, addPCLintPlus, addSetup, addVCCoverage, 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
-
NewPipelineJob
public NewPipelineJob(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws javax.servlet.ServletException, IOException, ScmConflictException, ExternalResultsFileException
Constructor- Parameters:
request
- request objectresponse
- response object- Throws:
javax.servlet.ServletException
- exceptionIOException
- exceptionScmConflictException
- 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
-
create
public void create(boolean update) throws IOException, javax.servlet.ServletException, hudson.model.Descriptor.FormException, JobAlreadyExistsException, InvalidProjectFileException
Create the Pipeline Jenkinsfile script- Overrides:
create
in classBaseJob
- Parameters:
update
- true/false- Throws:
IOException
- exceptionjavax.servlet.ServletException
- exceptionhudson.model.Descriptor.FormException
- exceptionJobAlreadyExistsException
- exceptionInvalidProjectFileException
- exception
-
getSharedArtifactDirectory
protected String getSharedArtifactDirectory()
Get getSharedArtifactDirectory- Returns:
- sharedArtifactDirectory string
-
cleanupProject
protected void cleanupProject()
Description copied from class:BaseJob
Cleanup top-level project, as in delete- Specified by:
cleanupProject
in classBaseJob
-
-