Class VectorCASTSetup
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- com.vectorcast.plugins.vectorcastexecution.VectorCASTSetup
-
- All Implemented Interfaces:
hudson.ExtensionPoint
,hudson.model.Describable<hudson.tasks.Builder>
,hudson.tasks.BuildStep
,jenkins.tasks.SimpleBuildStep
public class VectorCASTSetup extends hudson.tasks.Builder implements jenkins.tasks.SimpleBuildStep
VectorCAST setup build action
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VectorCASTSetup.DescriptorImpl
Descriptor forVectorCASTSetup
.-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
-
-
Constructor Summary
Constructors Constructor Description VectorCASTSetup(String environmentSetupWin, String environmentSetupUnix, String executePreambleWin, String executePreambleUnix, String environmentTeardownWin, String environmentTeardownUnix, boolean optionUseReporting, String optionErrorLevel, String optionHtmlBuildDesc, boolean optionExecutionReport, boolean optionClean, boolean useCILicenses, boolean useStrictTestcaseImport, boolean useImportedResults, boolean useLocalImportedResults, boolean useExternalImportedResults, String externalResultsFilename, boolean useCoverageHistory, Long waitLoops, Long waitTime, Long maxParallel, String manageProjectName, String jobName, String nodeLabel, String pclpCommand, String pclpResultsPattern, String squoreCommand, String TESTinsights_URL, String TESTinsights_project, String TESTinsights_credentials_id, String TESTinsights_proxy, String TESTinsights_SCM_URL, String TESTinsights_SCM_Tech)
Create setup step
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorCASTSetup.DescriptorImpl
getDescriptor()
String
getEnvironmentSetupUnix()
Get environment setup for unixString
getEnvironmentSetupWin()
Get environment for windows setupString
getEnvironmentTeardownUnix()
Get environment teardown for unixString
getEnvironmentTeardownWin()
Get environment teardown for windowsString
getExecutePreambleUnix()
Get execute preamble for unixString
getExecutePreambleWin()
Get execute preamble for windowsString
getExternalResultsFilename()
Get option to Use as external result filenameString
getJobName()
Get the job nameString
getManageProjectName()
Get the Manage project file/nameLong
getMaxParallel()
Get for maxParallel to control maximum number of jobs to be queue at at any one pointString
getNodeLabel()
Get the node labelboolean
getOptionClean()
Get option for cleaning workspaceString
getOptionErrorLevel()
Get option error levelboolean
getOptionExecutionReport()
Get option for execution reportString
getOptionHtmlBuildDesc()
Get option for HTML Build Descriptionboolean
getOptionUseReporting()
Get option to use reportingString
getPclpCommand()
Get pc-lint plus commandString
getPclpResultsPattern()
Get pc-lint plus result patternhudson.scm.SCM
getSCM()
Get the SCM to useString
getSquoreCommand()
Get Squore commandString
getTESTinsights_credentials_id()
Get Credentials ID for TESTinsightsString
getTESTinsights_project()
Get Project for TESTinsightsString
getTESTinsights_proxy()
Get Proxy for TESTinsightsString
getTESTinsights_SCM_Tech()
Get SCM Technology TESTinsightsString
getTESTinsights_SCM_URL()
Get SCM URL for TESTinsightsString
getTESTinsights_URL()
Get URL for TESTinsightsboolean
getUseCILicenses()
Get option to use CI licensesboolean
getUseCoverageHistory()
Get option to Use coverage history to control build statusboolean
getUseExternalImportedResults()
Get option to Use external imported resultsboolean
getUseImportedResults()
Get option to Use imported resultsboolean
getUseLocalImportedResults()
Get option to Use local imported resultsboolean
getUseStrictTestcaseImport()
Get option to Use strict testcase importboolean
getUsingPCLP()
Get using pc-lint plus commandboolean
getUsingSCM()
Get using SCMboolean
getUsingSquoreCommand()
Get using getUsingPCLP commandLong
getWaitLoops()
Get the number of wait loops to doLong
getWaitTime()
Get the wait time for license retriesvoid
perform(hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener)
Perform the build step.void
setEnvironmentSetupUnix(String environmentSetupUnix)
Set environment setup for unixvoid
setEnvironmentSetupWin(String environmentSetupWin)
Set environment setup for windowsvoid
setEnvironmentTeardownUnix(String environmentTeardownUnix)
Set environment teardown for unixvoid
setEnvironmentTeardownWin(String environmentTeardownWin)
Set environment teardown for windowsvoid
setExecutePreambleUnix(String executePreambleUnix)
Set execute preamble for unixvoid
setExecutePreambleWin(String executePreambleWin)
Set execute preamble for windowsvoid
setExternalResultsFilename(String externalResultsFilename)
Set option to Use imported resultsvoid
setJobName(String jobName)
Set the job namevoid
setManageProjectName(String manageProjectName)
Set the Manage project file/namevoid
setMaxParallel(Long maxParallel)
Set option for maxParallel to control maximum number of jobs to be queue at at any one pointvoid
setNodeLabel(String nodeLabel)
Set the node labelvoid
setOptionClean(boolean optionClean)
Set option for cleaning workspacevoid
setOptionErrorLevel(String optionErrorLevel)
Set option error levelvoid
setOptionExecutionReport(boolean optionExecutionReport)
Set option for execution reportvoid
setOptionHtmlBuildDesc(String optionHtmlBuildDesc)
Set option for HTML build description *void
setOptionUseReporting(boolean optionUseReporting)
Set option to use reportingvoid
setPclpCommand(String pclpCommand)
Get pc-lint plus commandvoid
setPclpResultsPattern(String pclpResultsPattern)
Get pc-lint plus result patternvoid
setSCM(hudson.scm.SCM scm)
Set the SCM being usedvoid
setSquoreCommand(String squoreCommand)
Set Squore commandvoid
setTESTinsights_credentials_id(String TESTinsights_credentials_id)
Set Credentials ID for TESTinsightsvoid
setTESTinsights_project(String TESTinsights_project)
Set Project for TESTinsightsvoid
setTESTinsights_proxy(String TESTinsights_proxy)
Set Proxy for TESTinsightsvoid
setTESTinsights_SCM_Tech(String TESTinsights_SCM_Tech)
Set SCM Technology TESTinsightsvoid
setTESTinsights_SCM_URL(String TESTinsights_SCM_URL)
Set SCM URL for TESTinsightsvoid
setTESTinsights_URL(String TESTinsights_URL)
Set URL for TESTinsightsvoid
setUseCILicenses(boolean useCILicenses)
Set option to use CI licensesvoid
setUseCoverageHistory(boolean useCoverageHistory)
Set option to Use coverage history to control build statusvoid
setUseExternalImportedResults(boolean useExternalImportedResults)
Set option to Use imported resultsvoid
setUseImportedResults(boolean useImportedResults)
Set option to Use imported resultsvoid
setUseLocalImportedResults(boolean useLocalImportedResults)
Set option to Use imported resultsvoid
setUseStrictTestcaseImport(boolean useStrictTestcaseImport)
Set option to Use strict testcase importvoid
setUsingSCM(boolean usingSCM)
Set using SCM (true yes, false no)void
setWaitLoops(Long waitLoops)
Set the number of wait loopsvoid
setWaitTime(Long waitTime)
Set the wait time for license retriesString
toString()
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
VectorCASTSetup
@DataBoundConstructor public VectorCASTSetup(String environmentSetupWin, String environmentSetupUnix, String executePreambleWin, String executePreambleUnix, String environmentTeardownWin, String environmentTeardownUnix, boolean optionUseReporting, String optionErrorLevel, String optionHtmlBuildDesc, boolean optionExecutionReport, boolean optionClean, boolean useCILicenses, boolean useStrictTestcaseImport, boolean useImportedResults, boolean useLocalImportedResults, boolean useExternalImportedResults, String externalResultsFilename, boolean useCoverageHistory, Long waitLoops, Long waitTime, Long maxParallel, String manageProjectName, String jobName, String nodeLabel, String pclpCommand, String pclpResultsPattern, String squoreCommand, String TESTinsights_URL, String TESTinsights_project, String TESTinsights_credentials_id, String TESTinsights_proxy, String TESTinsights_SCM_URL, String TESTinsights_SCM_Tech)
Create setup step- Parameters:
environmentSetupWin
- environment setup for windowsenvironmentSetupUnix
- environment setup for unixexecutePreambleWin
- execute preamble for windowsexecutePreambleUnix
- execute preamble for unixenvironmentTeardownWin
- environment teardown for windowsenvironmentTeardownUnix
- environment teardown for unixoptionUseReporting
- use reportingoptionErrorLevel
- error leveloptionHtmlBuildDesc
- HTML Build descriptionoptionExecutionReport
- execution reportoptionClean
- cleanuseCILicenses
- use CI licensesuseStrictTestcaseImport
- Use strict testcase importuseImportedResults
- use imported resultsuseLocalImportedResults
- use local imported resultsuseExternalImportedResults
- use extern imported resultsexternalResultsFilename
- use extern result filenameuseCoverageHistory
- use imported resultswaitLoops
- wait loopswaitTime
- wait timemaxParallel
- maximum number of jobs to queue in parallelmanageProjectName
- manage project namejobName
- job namenodeLabel
- node labelpclpCommand
- PC Lint Plus commandpclpResultsPattern
- PC Lint Plus result pattersquoreCommand
- Squore commandTESTinsights_URL
- URL for TESTinsightsTESTinsights_project
- Project for for TESTinsightsTESTinsights_credentials_id
- Credentials for for TESTinsightsTESTinsights_proxy
- Proxy for for TESTinsightsTESTinsights_SCM_URL
- SCM URL for for TESTinsightsTESTinsights_SCM_Tech
- SCM technology for for TESTinsights
-
-
Method Detail
-
getWaitLoops
public Long getWaitLoops()
Get the number of wait loops to do- Returns:
- number of loops
-
setWaitLoops
public void setWaitLoops(Long waitLoops)
Set the number of wait loops- Parameters:
waitLoops
- number of loops
-
getWaitTime
public Long getWaitTime()
Get the wait time for license retries- Returns:
- the wait time
-
setWaitTime
public void setWaitTime(Long waitTime)
Set the wait time for license retries- Parameters:
waitTime
- the wait time
-
getMaxParallel
public Long getMaxParallel()
Get for maxParallel to control maximum number of jobs to be queue at at any one point- Returns:
- maxParallel Long number
-
setMaxParallel
public void setMaxParallel(Long maxParallel)
Set option for maxParallel to control maximum number of jobs to be queue at at any one point- Parameters:
maxParallel
- Long number
-
getEnvironmentSetupWin
public String getEnvironmentSetupWin()
Get environment for windows setup- Returns:
- environment setup
-
setEnvironmentSetupWin
public void setEnvironmentSetupWin(String environmentSetupWin)
Set environment setup for windows- Parameters:
environmentSetupWin
- environment setup
-
getEnvironmentSetupUnix
public String getEnvironmentSetupUnix()
Get environment setup for unix- Returns:
- environment setup
-
setEnvironmentSetupUnix
public void setEnvironmentSetupUnix(String environmentSetupUnix)
Set environment setup for unix- Parameters:
environmentSetupUnix
- environment setup
-
getExecutePreambleWin
public String getExecutePreambleWin()
Get execute preamble for windows- Returns:
- execute preamble
-
setExecutePreambleWin
public void setExecutePreambleWin(String executePreambleWin)
Set execute preamble for windows- Parameters:
executePreambleWin
- execute preamble
-
getExecutePreambleUnix
public String getExecutePreambleUnix()
Get execute preamble for unix- Returns:
- execute preamble
-
setExecutePreambleUnix
public void setExecutePreambleUnix(String executePreambleUnix)
Set execute preamble for unix- Parameters:
executePreambleUnix
- execute preamble
-
getEnvironmentTeardownWin
public String getEnvironmentTeardownWin()
Get environment teardown for windows- Returns:
- environment teardown
-
setEnvironmentTeardownWin
public void setEnvironmentTeardownWin(String environmentTeardownWin)
Set environment teardown for windows- Parameters:
environmentTeardownWin
- environment teardown
-
getEnvironmentTeardownUnix
public String getEnvironmentTeardownUnix()
Get environment teardown for unix- Returns:
- environment teardown
-
setEnvironmentTeardownUnix
public void setEnvironmentTeardownUnix(String environmentTeardownUnix)
Set environment teardown for unix- Parameters:
environmentTeardownUnix
- environment teardown
-
getOptionUseReporting
public boolean getOptionUseReporting()
Get option to use reporting- Returns:
- true/false
-
setOptionUseReporting
public void setOptionUseReporting(boolean optionUseReporting)
Set option to use reporting- Parameters:
optionUseReporting
- true/false
-
getOptionErrorLevel
public String getOptionErrorLevel()
Get option error level- Returns:
- error level
-
setOptionErrorLevel
public void setOptionErrorLevel(String optionErrorLevel)
Set option error level- Parameters:
optionErrorLevel
- error level
-
getOptionHtmlBuildDesc
public String getOptionHtmlBuildDesc()
Get option for HTML Build Description- Returns:
- "HTML" or "TEXT"
-
setOptionHtmlBuildDesc
public void setOptionHtmlBuildDesc(String optionHtmlBuildDesc)
Set option for HTML build description *- Parameters:
optionHtmlBuildDesc
- HTML or TEXT
-
getOptionExecutionReport
public boolean getOptionExecutionReport()
Get option for execution report- Returns:
- true/false
-
setOptionExecutionReport
public void setOptionExecutionReport(boolean optionExecutionReport)
Set option for execution report- Parameters:
optionExecutionReport
- true/false
-
getOptionClean
public boolean getOptionClean()
Get option for cleaning workspace- Returns:
- true/false
-
setOptionClean
public void setOptionClean(boolean optionClean)
Set option for cleaning workspace- Parameters:
optionClean
- true/false
-
getUseCILicenses
public boolean getUseCILicenses()
Get option to use CI licenses- Returns:
- true to use CI licenses, false to not
-
setUseCILicenses
public void setUseCILicenses(boolean useCILicenses)
Set option to use CI licenses- Parameters:
useCILicenses
- true to use CI licenses, false to not
-
getUseStrictTestcaseImport
public boolean getUseStrictTestcaseImport()
Get option to Use strict testcase import- Returns:
- true to Use strict testcase import, false to not
-
setUseStrictTestcaseImport
public void setUseStrictTestcaseImport(boolean useStrictTestcaseImport)
Set option to Use strict testcase import- Parameters:
useStrictTestcaseImport
- true to Use strict testcase import, false to not
-
getUseImportedResults
public boolean getUseImportedResults()
Get option to Use imported results- Returns:
- true to Use imported results, false to not
-
setUseImportedResults
public void setUseImportedResults(boolean useImportedResults)
Set option to Use imported results- Parameters:
useImportedResults
- true to Use imported results, false to not
-
getUseLocalImportedResults
public boolean getUseLocalImportedResults()
Get option to Use local imported results- Returns:
- true to Use local imported results, false to not
-
setUseLocalImportedResults
public void setUseLocalImportedResults(boolean useLocalImportedResults)
Set option to Use imported results- Parameters:
useLocalImportedResults
- true to Use local imported results, false to not
-
getUseExternalImportedResults
public boolean getUseExternalImportedResults()
Get option to Use external imported results- Returns:
- true to Use external imported results, false to not
-
setUseExternalImportedResults
public void setUseExternalImportedResults(boolean useExternalImportedResults)
Set option to Use imported results- Parameters:
useExternalImportedResults
- true to Use external imported results, false to not
-
getExternalResultsFilename
public String getExternalResultsFilename()
Get option to Use as external result filename- Returns:
- string external result filename
-
setExternalResultsFilename
public void setExternalResultsFilename(String externalResultsFilename)
Set option to Use imported results- Parameters:
externalResultsFilename
- true to Use external imported results, false to not
-
getUseCoverageHistory
public boolean getUseCoverageHistory()
Get option to Use coverage history to control build status- Returns:
- true to Use imported results, false to not
-
setUseCoverageHistory
public void setUseCoverageHistory(boolean useCoverageHistory)
Set option to Use coverage history to control build status- Parameters:
useCoverageHistory
- true to Use imported results, false to not
-
getUsingSCM
public boolean getUsingSCM()
Get using SCM- Returns:
- true/false
-
setUsingSCM
public void setUsingSCM(boolean usingSCM)
Set using SCM (true yes, false no)- Parameters:
usingSCM
- true/false
-
getSCM
public hudson.scm.SCM getSCM()
Get the SCM to use- Returns:
- SCM
-
setSCM
public void setSCM(hudson.scm.SCM scm)
Set the SCM being used- Parameters:
scm
- SCM
-
getManageProjectName
public String getManageProjectName()
Get the Manage project file/name- Returns:
- Manage project name
-
setManageProjectName
public void setManageProjectName(String manageProjectName)
Set the Manage project file/name- Parameters:
manageProjectName
- Manage project name
-
getJobName
public String getJobName()
Get the job name- Returns:
- job name
-
setJobName
public void setJobName(String jobName)
Set the job name- Parameters:
jobName
- job name
-
getNodeLabel
public String getNodeLabel()
Get the node label- Returns:
- node label
-
setNodeLabel
public void setNodeLabel(String nodeLabel)
Set the node label- Parameters:
nodeLabel
- node label
-
getPclpCommand
public String getPclpCommand()
Get pc-lint plus command- Returns:
- pc-lint plus command
-
setPclpCommand
public void setPclpCommand(String pclpCommand)
Get pc-lint plus command- Parameters:
pclpCommand
- - Pc Lint Plus Command
-
getUsingPCLP
public boolean getUsingPCLP()
Get using pc-lint plus command- Returns:
- true/false if we have a PC Lint Command
-
getPclpResultsPattern
public String getPclpResultsPattern()
Get pc-lint plus result pattern- Returns:
- pc-lint plus result pattern
-
setPclpResultsPattern
public void setPclpResultsPattern(String pclpResultsPattern)
Get pc-lint plus result pattern- Parameters:
pclpResultsPattern
- - PC Lint Result pattern
-
getUsingSquoreCommand
public boolean getUsingSquoreCommand()
Get using getUsingPCLP command- Returns:
- true/false if we have a squoreCommand
-
getSquoreCommand
public String getSquoreCommand()
Get Squore command- Returns:
- Squore command
-
setSquoreCommand
public void setSquoreCommand(String squoreCommand)
Set Squore command- Parameters:
squoreCommand
- - Squore Command
-
getTESTinsights_URL
public String getTESTinsights_URL()
Get URL for TESTinsights- Returns:
- TESTinsights URL
-
setTESTinsights_URL
public void setTESTinsights_URL(String TESTinsights_URL)
Set URL for TESTinsights- Parameters:
TESTinsights_URL
- - TESTinsights URL
-
getTESTinsights_project
public String getTESTinsights_project()
Get Project for TESTinsights- Returns:
- TESTinsights Project
-
setTESTinsights_project
public void setTESTinsights_project(String TESTinsights_project)
Set Project for TESTinsights- Parameters:
TESTinsights_project
- - Project for TESTinsights
-
getTESTinsights_proxy
public String getTESTinsights_proxy()
Get Proxy for TESTinsights- Returns:
- TESTinsights proxy
-
setTESTinsights_proxy
public void setTESTinsights_proxy(String TESTinsights_proxy)
Set Proxy for TESTinsights- Parameters:
TESTinsights_proxy
- TESTinsights proxy
-
getTESTinsights_credentials_id
public String getTESTinsights_credentials_id()
Get Credentials ID for TESTinsights- Returns:
- TESTinsights Credentials
-
setTESTinsights_credentials_id
public void setTESTinsights_credentials_id(String TESTinsights_credentials_id)
Set Credentials ID for TESTinsights- Parameters:
TESTinsights_credentials_id
- - Credentials ID for TESTinsights
-
getTESTinsights_SCM_URL
public String getTESTinsights_SCM_URL()
Get SCM URL for TESTinsights- Returns:
- TESTinsights SCM URL
-
getTESTinsights_SCM_Tech
public String getTESTinsights_SCM_Tech()
Get SCM Technology TESTinsights- Returns:
- TESTinsights SCM Technology
-
setTESTinsights_SCM_URL
public void setTESTinsights_SCM_URL(String TESTinsights_SCM_URL)
Set SCM URL for TESTinsights- Parameters:
TESTinsights_SCM_URL
- - URL for TESTinsights
-
setTESTinsights_SCM_Tech
public void setTESTinsights_SCM_Tech(String TESTinsights_SCM_Tech)
Set SCM Technology TESTinsights- Parameters:
TESTinsights_SCM_Tech
- - SCM Technology TESTinsights (git or svn)
-
perform
public void perform(hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws IOException
Perform the build step. Copy the scripts from the archive/directory to the workspace- Specified by:
perform
in interfacejenkins.tasks.SimpleBuildStep
- Parameters:
build
- buildworkspace
- workspacelauncher
- launcherlistener
- listener- Throws:
IOException
- exception
-
getDescriptor
public VectorCASTSetup.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfacehudson.model.Describable<hudson.tasks.Builder>
- Overrides:
getDescriptor
in classhudson.tasks.Builder
-
-