Class 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
    • 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 windows
        environmentSetupUnix - environment setup for unix
        executePreambleWin - execute preamble for windows
        executePreambleUnix - execute preamble for unix
        environmentTeardownWin - environment teardown for windows
        environmentTeardownUnix - environment teardown for unix
        optionUseReporting - use reporting
        optionErrorLevel - error level
        optionHtmlBuildDesc - HTML Build description
        optionExecutionReport - execution report
        optionClean - clean
        useCILicenses - use CI licenses
        useStrictTestcaseImport - Use strict testcase import
        useImportedResults - use imported results
        useLocalImportedResults - use local imported results
        useExternalImportedResults - use extern imported results
        externalResultsFilename - use extern result filename
        useCoverageHistory - use imported results
        waitLoops - wait loops
        waitTime - wait time
        maxParallel - maximum number of jobs to queue in parallel
        manageProjectName - manage project name
        jobName - job name
        nodeLabel - node label
        pclpCommand - PC Lint Plus command
        pclpResultsPattern - PC Lint Plus result patter
        squoreCommand - Squore command
        TESTinsights_URL - URL for TESTinsights
        TESTinsights_project - Project for for TESTinsights
        TESTinsights_credentials_id - Credentials for for TESTinsights
        TESTinsights_proxy - Proxy for for TESTinsights
        TESTinsights_SCM_URL - SCM URL for for TESTinsights
        TESTinsights_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 interface jenkins.tasks.SimpleBuildStep
        Parameters:
        build - build
        workspace - workspace
        launcher - launcher
        listener - listener
        Throws:
        IOException - exception
      • getDescriptor

        public VectorCASTSetup.DescriptorImpl getDescriptor()
        Specified by:
        getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>
        Overrides:
        getDescriptor in class hudson.tasks.Builder