The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

Synopsys Coverity Plugin

synopsys_coverity: Synopsys Coverity

  • coverityToolName

    Specify which Synopsys Coverity Static Analysis tool installation to use.

    • Type: String
  • onCommandFailure

    Specify the action to take if a Coverity command fails.

    • Values: SKIP_REMAINING_COMMANDS, EXECUTE_REMAINING_COMMANDS
  • commands
      Array/List
      Nested Object
    • command
      • Type: String
  • buildStatusForIssues

    Specify the build status to set if issues are found in the configured view.

    • Values: SUCCESS, FAILURE, UNSTABLE
  • projectName

    Specify the name of the Coverity project.

    • Type: String
  • streamName

    Specify the name of the Coverity stream that you would like to use for the commands. The resulting stream name is stored in the $COV_STREAM environment variable, and will affect both the initial and delta analysis.

    • Type: String
  • coverityRunConfiguration
    • Values: SIMPLE, ADVANCED
  • coverityAnalysisType

    Specify the type of analysis you would like to run.
    Initial Analysis will run the cov-build, cov-analyze, and cov-commit-defects tools (in that order)
    Delta Analysis will run the cov-build, cov-run-desktop, and cov-commit-defects tools (in that order)

    Specifically, the tools will be invoked with the following parameters:

    cov-build --dir ${WORKSPACE}/idir build command
    cov-analyze --dir ${WORKSPACE}/idir
    cov-run-desktop --dir ${WORKSPACE}/idir --host ${COVERITY_HOST} --stream ${COV_STREAM} ${CHANGE_SET}
    cov-commit-defects --dir ${WORKSPACE}/idir --host ${COVERITY_HOST} --port ${COVERITY_PORT} --stream ${COV_STREAM}
    • Values: COV_ANALYZE, COV_RUN_DESKTOP
  • buildCommand

    Specify the build command for Coverity to run to build your project.

    • Type: String
  • viewName

    Specify the name of the Coverity view that you would like to check for issues.

    • Type: String
  • changeSetExclusionPatterns

    Specify a comma separated list of filename patterns that you would like to explicitly exclude from the Jenkins change set. The pattern is applied to the $CHANGE_SET environment variable, and will affect which files are analyzed in a delta analysis (cov-run-desktop). Examples:

    File Name Pattern Will be excluded
    test.java *.java Yes
    test.java *.jpg No
    test.java test.* Yes
    test.java test.???? Yes
    test.java test.????? No

    • Type: String
  • changeSetInclusionPatterns

    Specify a comma separated list of filename patterns that you would like to exclude from the Jenkins change set. The pattern is applied to the $CHANGE_SET environment variable, and will affect which files are analyzed in a delta analysis (cov-run-desktop). Examples:

    File Name Pattern Will be included
    test.java *.java Yes
    test.java *.jpg No
    test.java test.* Yes
    test.java test.???? Yes
    test.java test.????? No

    • Type: String
  • checkForIssuesInView
    • Type: boolean
  • configureChangeSetPatterns
    • Type: boolean

Was this page helpful?

Please submit your feedback about this page through this quick form.

Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?

    


See existing feedback here.