Class BaseJob
- java.lang.Object
- 
- com.vectorcast.plugins.vectorcastexecution.job.BaseJob
 
- 
- Direct Known Subclasses:
- NewPipelineJob,- NewSingleJob
 
 public abstract class BaseJob extends Object Base job management - create/delete/update.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedBaseJob(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp)Constructor.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddArchiveArtifacts(Project<?,?> project)Add archive artifacts step.protected voidaddCopyResultsToImport(Project<?,?> project)Add archive artifacts step.protected voidaddCredentialID(Project<?,?> project)Add credentials for coverage reporting step.protected voidaddDelWSBeforeBuild(Project<?,?> project)Add the delete workspace before build starts option.protected voidaddJenkinsCoverage(Project<?,?> project)Add Jenkins coverage reporting step.protected voidaddJunit(Project<?,?> project)Add JUnit rules step.protected voidaddPCLintPlus(Project<?,?> project)Add PC-Lint Plus step.protected voidaddReferenceBuild(Project<?,?> project)Add Jenkins coverage reporting step.protected VectorCASTSetupaddSetup(Project<?,?> project)Add the VectorCAST setup step to copy the python scripts to.protected voidaddVCCoverage(Project<?,?> project)Add VectorCAST coverage reporting step.protected abstract voidcleanupProject()Cleanup top-level project, as in delete.voidcreate()Create the job(s).protected abstract Project<?,?>createProject()Create top-level project.protected abstract voiddoCreate()Do create of project details.protected URLgetBaselineLinuxSingleFile()Call to get baseline linux single job file.protected URLgetBaselinePipelineGroovy()Call to get baseline groovy script for pipeline job.protected URLgetBaselinePostBuildGroovyScript()Call to get baseline post-build groovy job file.protected URLgetBaselineWindowsSingleFile()Call to get baseline windows single job file.protected StringgetBaseName()Get base name of manage project.protected StringgetEnvironmentSetupUnix()Get environment setup for unix.protected StringgetEnvironmentSetupWin()Get environment setup for windows.protected StringgetEnvironmentTeardownUnix()Get environment tear down for unix.protected StringgetEnvironmentTeardownWin()Get environment tear down for windows.protected StringgetExecutePreambleUnix()Get execute preamble for unix.protected StringgetExecutePreambleWin()Get execute preamble for windows.protected StringgetExternalResultsFilename()Get option to Use as external result filename.protected JenkinsgetInstance()Get Jenkins instance.protected StringgetJobName()Get the user-specified job name.protected StringgetManageProjectName()Get manage project name.protected LonggetMaxParallel()Get for maxParallel to control maximum number of jobs to be queue at at any one point.protected StringgetNodeLabel()Get node label.protected booleangetOptionClean()Get option to clean workspace before build.protected intgetOptionErrorLevel()Get error level.protected booleangetOptionExecutionReport()Use execution report.protected StringgetOptionHTMLBuildDesc()Use HTML Build Description.protected booleangetOptionUseReporting()Get use Jenkins reporting option.protected StringgetPclpCommand()Get pc-lint plus command.protected StringgetPclpResultsPattern()Get pc-lint plus result pattern.protected URLgetPipelineConfigParametersXML()Call to get baseline config.xml with parameters for pipeline job .protected URLgetPipelineConfigXML()Call to get baseline config.xml for pipeline job .StringgetProjectName()Get the name of the project.protected org.kohsuke.stapler.StaplerRequestgetRequest()Get request.protected org.kohsuke.stapler.StaplerResponsegetResponse()Get response.protected StringgetSquoreCommand()Get command for running Squore.protected StringgetTestInsightsCredentialsId()Get Credentials for TESTinsights.protected StringgetTestInsightsProject()Get Project for TESTinsights.protected StringgetTestInsightsProxy()Get Proxy for TESTinsights.protected StringgetTestInsightsScmTech()Get SCM Technology TESTinsights.protected StringgetTestInsightsScmUrl()Get SCM URL for TESTinsights.protected StringgetTestInsightsUrl()Get URL for TESTinsights.protected Project<?,?>getTopProject()Get top-level project.protected booleangetUseCILicenses()Get option to use CI licenses.protected StringgetUseCILicensesUnix()Get use CI license for Linux.protected StringgetUseCILicensesWin()Get use CI license for Linux.booleangetUseCoverageHistory()Get option to Use coverage history to control build status.protected booleangetUseCoveragePlugin()Get option to use coverage plugin or vectorcast coverage plugin.protected booleangetUseExternalImportedResults()Get option to Use external imported results.protected booleangetUseImportedResults()Get option to Use imported results.protected booleangetUseLocalImportedResults()Get option to Use local imported results.protected booleangetUseRGW3()Get option to Use RGW3 capabilities.protected booleangetUseStrictTestcaseImport()Get option to Use strict testcase import.protected LonggetWaitLoops()Get the number of wait loops.protected LonggetWaitTime()Get the time to wait between retries.protected booleanisUsingScm()Using some form of SCM.voidsetProjectName(String pName)Sets the name of the project.protected voidsetTestInsightsProject(String project)set Project for TESTinsights.protected voidsetTestInsightsScmTech(String tech)Set SCM Technology TESTinsights.protected voidsetTestInsightsScmUrl(String url)Set SCM URL for TESTinsights.protected voidsetUsingSCM(boolean useScm)Set using some form of SCM.
 
- 
- 
- 
Constructor Detail- 
BaseJobprotected BaseJob(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp) throws javax.servlet.ServletException, IOException, ExternalResultsFileException, IllegalArgumentException, BadOptionComboExceptionConstructor.- Parameters:
- req- request object
- resp- response object
- Throws:
- javax.servlet.ServletException- exception
- IOException- exception
- ExternalResultsFileException- exception
- IllegalArgumentException- exception
- BadOptionComboException- exception
 
 
- 
 - 
Method Detail- 
isUsingScmprotected boolean isUsingScm() Using some form of SCM.- Returns:
- true or false
 
 - 
setUsingSCMprotected void setUsingSCM(boolean useScm) Set using some form of SCM.- Parameters:
- useScm- true/false
 
 - 
getEnvironmentSetupWinprotected String getEnvironmentSetupWin() Get environment setup for windows.- Returns:
- setup
 
 - 
getExecutePreambleWinprotected String getExecutePreambleWin() Get execute preamble for windows.- Returns:
- preamble
 
 - 
getEnvironmentTeardownWinprotected String getEnvironmentTeardownWin() Get environment tear down for windows.- Returns:
- environment tear down for windows
 
 - 
getEnvironmentSetupUnixprotected String getEnvironmentSetupUnix() Get environment setup for unix.- Returns:
- environment setup
 
 - 
getExecutePreambleUnixprotected String getExecutePreambleUnix() Get execute preamble for unix.- Returns:
- preamble
 
 - 
getEnvironmentTeardownUnixprotected String getEnvironmentTeardownUnix() Get environment tear down for unix.- Returns:
- teardown
 
 - 
getOptionUseReportingprotected boolean getOptionUseReporting() Get use Jenkins reporting option.- Returns:
- true to use, false to not
 
 - 
getOptionErrorLevelprotected int getOptionErrorLevel() Get error level.- Returns:
- int 0 - Do nothing, 1 - Unstable, 2 - Error
 
 - 
getOptionHTMLBuildDescprotected String getOptionHTMLBuildDesc() Use HTML Build Description.- Returns:
- HTML or TEXT
 
 - 
getOptionExecutionReportprotected boolean getOptionExecutionReport() Use execution report.- Returns:
- true to use, false to not
 
 - 
getOptionCleanprotected boolean getOptionClean() Get option to clean workspace before build.- Returns:
- true to clean, false to not
 
 - 
getUseCILicensesprotected boolean getUseCILicenses() Get option to use CI licenses.- Returns:
- true to use CI licenses, false to not
 
 - 
getUseStrictTestcaseImportprotected boolean getUseStrictTestcaseImport() Get option to Use strict testcase import.- Returns:
- true to Use strict testcase import, false to not
 
 - 
getUseRGW3protected boolean getUseRGW3() Get option to Use RGW3 capabilities.- Returns:
- true use RGW3 capabilities, false to not
 
 - 
getUseCoveragePluginprotected boolean getUseCoveragePlugin() Get option to use coverage plugin or vectorcast coverage plugin.- Returns:
- true use coverage plugin or vectorcast coverage plugin
 
 - 
getUseImportedResultsprotected boolean getUseImportedResults() Get option to Use imported results.- Returns:
- true to Use imported results, false to not
 
 - 
getUseLocalImportedResultsprotected boolean getUseLocalImportedResults() Get option to Use local imported results.- Returns:
- true to Use local imported results, false to not
 
 - 
getUseExternalImportedResultsprotected boolean getUseExternalImportedResults() Get option to Use external imported results.- Returns:
- true to Use external imported results, false to not
 
 - 
getExternalResultsFilenameprotected String getExternalResultsFilename() Get option to Use as external result filename.- Returns:
- string external result filename
 
 - 
getUseCoverageHistorypublic boolean getUseCoverageHistory() Get option to Use coverage history to control build status.- Returns:
- true to Use imported results, false to not
 
 - 
getMaxParallelprotected Long getMaxParallel() Get for maxParallel to control maximum number of jobs to be queue at at any one point.- Returns:
- MaxParallel integer number
 
 - 
getUseCILicensesWinprotected String getUseCILicensesWin() Get use CI license for Linux.- Returns:
- String command to set
 
 - 
getUseCILicensesUnixprotected String getUseCILicensesUnix() Get use CI license for Linux.- Returns:
- String command to set
 
 - 
getWaitTimeprotected Long getWaitTime() Get the time to wait between retries.- Returns:
- number of seconds
 
 - 
getWaitLoopsprotected Long getWaitLoops() Get the number of wait loops.- Returns:
- number of iterations
 
 - 
getJobNameprotected String getJobName() Get the user-specified job name.- Returns:
- job name (null for use default)
 
 - 
getTopProjectprotected Project<?,?> getTopProject() Get top-level project.- Returns:
- project
 
 - 
getManageProjectNameprotected String getManageProjectName() Get manage project name.- Returns:
- manage project name
 
 - 
getBaseNameprotected String getBaseName() Get base name of manage project.- Returns:
- base name
 
 - 
getNodeLabelprotected String getNodeLabel() Get node label.- Returns:
- node label
 
 - 
getPclpCommandprotected String getPclpCommand() Get pc-lint plus command.- Returns:
- pc-lint plus command
 
 - 
getPclpResultsPatternprotected String getPclpResultsPattern() Get pc-lint plus result pattern.- Returns:
- pc-lint plus result pattern
 
 - 
getSquoreCommandprotected String getSquoreCommand() Get command for running Squore.- Returns:
- Squore command
 
 - 
getTestInsightsUrlprotected String getTestInsightsUrl() Get URL for TESTinsights.- Returns:
- TESTinsights URL
 
 - 
getTestInsightsProjectprotected String getTestInsightsProject() Get Project for TESTinsights.- Returns:
- TESTinsights Project
 
 - 
setTestInsightsProjectprotected void setTestInsightsProject(String project) set Project for TESTinsights.- Parameters:
- project- TESTinsights Project
 
 - 
getTestInsightsProxyprotected String getTestInsightsProxy() Get Proxy for TESTinsights.- Returns:
- proxy TESTinsights proxy
 
 - 
getTestInsightsCredentialsIdprotected String getTestInsightsCredentialsId() Get Credentials for TESTinsights.- Returns:
- TESTinsights Credentials
 
 - 
setTestInsightsScmUrlprotected void setTestInsightsScmUrl(String url) Set SCM URL for TESTinsights.- Parameters:
- url- TESTinsights SCM URL
 
 - 
getTestInsightsScmUrlprotected String getTestInsightsScmUrl() Get SCM URL for TESTinsights.- Returns:
- TESTinsights SCM URL
 
 - 
getTestInsightsScmTechprotected String getTestInsightsScmTech() Get SCM Technology TESTinsights.- Returns:
- TESTinsights SCM Technology
 
 - 
setTestInsightsScmTechprotected void setTestInsightsScmTech(String tech) Set SCM Technology TESTinsights.- Parameters:
- tech- TESTinsights SCM Technology
 
 - 
getRequestprotected org.kohsuke.stapler.StaplerRequest getRequest() Get request.- Returns:
- request
 
 - 
getInstanceprotected Jenkins getInstance() Get Jenkins instance.- Returns:
- Jenkins instance
 
 - 
getProjectNamepublic String getProjectName() Get the name of the project.- Returns:
- the project name
 
 - 
setProjectNamepublic void setProjectName(String pName) Sets the name of the project.- Parameters:
- pName- - project name
 
 - 
getResponseprotected org.kohsuke.stapler.StaplerResponse getResponse() Get response.- Returns:
- response
 
 - 
addDelWSBeforeBuildprotected void addDelWSBeforeBuild(Project<?,?> project) Add the delete workspace before build starts option.- Parameters:
- project- project to add to
 
 - 
create@POST public void create() throws IOException, javax.servlet.ServletException, Descriptor.FormException, JobAlreadyExistsException, InvalidProjectFileException, AccessDeniedException3Create the job(s).- Throws:
- IOException- exception
- javax.servlet.ServletException- exception
- Descriptor.FormException- exception
- JobAlreadyExistsException- exception
- InvalidProjectFileException- exception
- AccessDeniedException3- exception
 
 - 
createProjectprotected abstract Project<?,?> createProject() throws IOException, JobAlreadyExistsException Create top-level project.- Returns:
- created project
- Throws:
- IOException- exception
- JobAlreadyExistsException- exception
 
 - 
cleanupProjectprotected abstract void cleanupProject() Cleanup top-level project, as in delete.
 - 
doCreate@POST protected abstract void doCreate() throws IOException, javax.servlet.ServletException, Descriptor.FormException, InvalidProjectFileExceptionDo create of project details.- Throws:
- IOException- exception
- javax.servlet.ServletException- exception
- Descriptor.FormException- exception
- InvalidProjectFileException- exception
 
 - 
addSetupprotected VectorCASTSetup addSetup(Project<?,?> project) throws IOException Add the VectorCAST setup step to copy the python scripts to. the workspace- Parameters:
- project- project
- Returns:
- the setup build step
- Throws:
- IOException
 
 - 
addArchiveArtifactsprotected void addArchiveArtifacts(Project<?,?> project) Add archive artifacts step.- Parameters:
- project- project to add to
 
 - 
addCopyResultsToImportprotected void addCopyResultsToImport(Project<?,?> project) Add archive artifacts step.- Parameters:
- project- project to add to
 
 - 
addJunitprotected void addJunit(Project<?,?> project) Add JUnit rules step.- Parameters:
- project- project to add step to
 
 - 
addPCLintPlusprotected void addPCLintPlus(Project<?,?> project) Add PC-Lint Plus step.- Parameters:
- project- project to add step to do PC-Lint Plus
 
 - 
addVCCoverageprotected void addVCCoverage(Project<?,?> project) Add VectorCAST coverage reporting step.- Parameters:
- project- project to add step to
 
 - 
addReferenceBuildprotected void addReferenceBuild(Project<?,?> project) Add Jenkins coverage reporting step.- Parameters:
- project- project to add step to
 
 - 
addJenkinsCoverageprotected void addJenkinsCoverage(Project<?,?> project) Add Jenkins coverage reporting step.- Parameters:
- project- project to add step to
 
 - 
addCredentialIDprotected void addCredentialID(Project<?,?> project) Add credentials for coverage reporting step.- Parameters:
- project- project to add step to
 
 - 
getBaselineWindowsSingleFileprotected URL getBaselineWindowsSingleFile() Call to get baseline windows single job file.- Returns:
- URL for baseline file
 
 - 
getBaselineLinuxSingleFileprotected URL getBaselineLinuxSingleFile() Call to get baseline linux single job file.- Returns:
- URL for baseline file
 
 - 
getBaselinePostBuildGroovyScriptprotected URL getBaselinePostBuildGroovyScript() Call to get baseline post-build groovy job file.- Returns:
- URL for baseline file
 
 - 
getPipelineConfigParametersXMLprotected URL getPipelineConfigParametersXML() Call to get baseline config.xml with parameters for pipeline job .- Returns:
- URL for baseline file
 
 - 
getPipelineConfigXMLprotected URL getPipelineConfigXML() Call to get baseline config.xml for pipeline job .- Returns:
- URL for baseline file
 
 - 
getBaselinePipelineGroovyprotected URL getBaselinePipelineGroovy() Call to get baseline groovy script for pipeline job.- Returns:
- URL for baseline file
 
 
- 
 
-