Class NewPipelineJob
java.lang.Object
com.vectorcast.plugins.vectorcastexecution.job.BaseJob
com.vectorcast.plugins.vectorcastexecution.job.NewPipelineJob
Create a new single job.
-
Constructor Summary
ConstructorsConstructorDescriptionNewPipelineJob(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCleans up the project - should not be called at this level.voidcreate()Create the Pipeline Jenkinsfile script.protected Project<?, ?> Create project.voiddoCreate()Add build steps.protected StringGet getEnvironmentSetup.protected StringGet getExecutePreamble.protected StringGet getExecutePreamble.protected StringGet pipelineSCM.protected StringGet getPostSCMCheckoutCommands.protected StringGet getSharedArtifactDirectory.protected booleanGet getSingleCheckout.protected booleanGet getUseCBT.protected booleanGet getUseParameters.Methods inherited from class com.vectorcast.plugins.vectorcastexecution.job.BaseJob
addArchiveArtifacts, addCopyResultsToImport, addDelWSBeforeBuild, addJenkinsCoverage, addJunit, addPCLintPlus, addReferenceBuild, addSetup, addVCCoverage, getBaselineLinuxSingleFile, getBaselinePipelineGroovy, getBaselinePostBuildGroovyScript, getBaselineWindowsSingleFile, getBaseName, getEnvironmentSetupUnix, getEnvironmentSetupWin, getEnvironmentTeardownUnix, getEnvironmentTeardownWin, getExecutePreambleUnix, getExecutePreambleWin, getExternalResultsFilename, getInstance, getJobName, getManageProjectName, getMaxParallel, getNodeLabel, getOptionClean, getOptionErrorLevel, getOptionExecutionReport, getOptionHTMLBuildDesc, getOptionUseReporting, getPclpCommand, getPclpResultsPattern, getPipelineConfigParametersXML, getPipelineConfigXML, getProjectName, getRequest, getResponse, getSquoreCommand, getTopProject, getUseCILicenses, getUseCILicensesUnix, getUseCILicensesWin, getUseCoverageHistory, getUseCoveragePlugin, getUseExternalImportedResults, getUseImportedResults, getUseLocalImportedResults, getUseRGW3, getUseStrictTestcaseImport, getWaitLoops, getWaitTime, isUsingScm, setProjectName, setUsingSCM
-
Constructor Details
-
NewPipelineJob
public NewPipelineJob(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws javax.servlet.ServletException, IOException, ScmConflictException, ExternalResultsFileException, BadOptionComboException Constructor.- Parameters:
request- request objectresponse- response object- Throws:
javax.servlet.ServletException- exceptionIOException- exceptionScmConflictException- exceptionExternalResultsFileException- exceptionBadOptionComboException- exception
-
-
Method Details
-
createProject
Create project.- Specified by:
createProjectin classBaseJob- Returns:
- project
- Throws:
IOException- exceptionJobAlreadyExistsException- exception
-
doCreate
Add build steps.- Specified by:
doCreatein classBaseJob- Throws:
IOException- exceptionjavax.servlet.ServletException- exceptionDescriptor.FormException- exception
-
create
@POST public void create() throws IOException, javax.servlet.ServletException, Descriptor.FormException, JobAlreadyExistsException, InvalidProjectFileException, AccessDeniedException3Create the Pipeline Jenkinsfile script.- Overrides:
createin classBaseJob- Throws:
IOException- exceptionjavax.servlet.ServletException- exceptionDescriptor.FormException- exceptionJobAlreadyExistsException- exceptionInvalidProjectFileException- exceptionAccessDeniedException3- exception
-
getPipelineSCM
Get pipelineSCM.- Returns:
- pipelineSCM String
-
getPostSCMCheckoutCommands
Get getPostSCMCheckoutCommands.- Returns:
- postSCMCheckoutCommands String
-
getUseParameters
protected boolean getUseParameters()Get getUseParameters.- Returns:
- useParameters boolean
-
getSingleCheckout
protected boolean getSingleCheckout()Get getSingleCheckout.- Returns:
- singleCheckout boolean
-
getEnvironmentSetup
Get getEnvironmentSetup.- Returns:
- environmentSetup String
-
getExecutePreamble
Get getExecutePreamble.- Returns:
- executePreamble String
-
getEnvironmentTeardown
Get getExecutePreamble.- Returns:
- executePreamble String
-
getUseCBT
protected boolean getUseCBT()Get getUseCBT.- Returns:
- getUseCBT boolean
-
cleanupProject
protected void cleanupProject()Cleans up the project - should not be called at this level.- Specified by:
cleanupProjectin classBaseJob
-