X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fci-management%2Fci-management-coverity.yaml;h=c9a8f5e284964a9bfe69cebdc4d17299613d113e;hb=19f07ea4d635f43f49aac2fae55864244cfefbf7;hp=cb7b69f3a21788a9bf65ad1a43c18e7a89609d55;hpb=02d7b59d47a81083e19fdfeab1d4452c432d8bcc;p=ci-management.git
diff --git a/jjb/ci-management/ci-management-coverity.yaml b/jjb/ci-management/ci-management-coverity.yaml
index cb7b69f3a..c9a8f5e28 100644
--- a/jjb/ci-management/ci-management-coverity.yaml
+++ b/jjb/ci-management/ci-management-coverity.yaml
@@ -20,6 +20,7 @@
View Defects.
Please note that processing data takes some time. You will get an email when it's done.
+ See more Coverity Scan HOWTOs on ONAP Developer Wiki.
project-type: freestyle
@@ -29,6 +30,7 @@
build-timeout: 240
cron: '@daily'
disabled: false
+ dry-run: false
git-url: '$GIT_URL/$PROJECT'
java-version: openjdk8
mvn-global-settings: global-settings
@@ -40,6 +42,7 @@
coverity-user-email: ''
coverity-search-paths: ''
coverity-search-exclude-regexs: ''
+ max-git-repo-age-hours: 0
stream: master
submodule-recursive: true
submodule-timeout: 10
@@ -75,6 +78,39 @@
name: ARCHIVE_ARTIFACTS
default: '{archive-artifacts}'
description: Artifacts to archive to the logs server.
+ - string:
+ name: SEARCH_PATHS
+ default: '{coverity-search-paths}'
+ description: >
+ Additional directories to search for files to analyse by Coverity
+ Scan service (space separated).
+ - string:
+ name: SEARCH_EXCLUDE_REGEXS
+ default: '{coverity-search-exclude-regexs}'
+ description: >
+ File path patterns to exclude from analysis by Coverity Scan
+ service (e.g. 3rd-party or auto-generated sources, space
+ separated).
+ - string:
+ name: COVERITY_USER_EMAIL
+ default: '{coverity-user-email}'
+ description: >
+ E-mail address to receive analysis status report after submittion.
+ It must be a registered user on Coverity Scan service added as a
+ member to appropriate Coverity Scan project with "Maintainer/Owner"
+ role.
+ - bool:
+ name: DRY_RUN
+ default: '{dry-run}'
+ description: Do not submit results to Coverity Scan server at the end of the build.
+ - string:
+ name: 'MAX_GIT_REPO_AGE_HOURS'
+ default: '{max-git-repo-age-hours}'
+ description: >
+ If set to non-zero run the code scan only if there were no git
+ repository commits last MAX_GIT_REPO_AGE_HOURS hours.
+ It makes sense to set the value twice the 'cron' interval for the
+ job (e.g. if 'cron: @daily', then MAX_GIT_REPO_AGE_HOURS=48)
triggers:
- timed: '{obj:cron}'
@@ -97,9 +133,6 @@
properties-content: |
COVERITY_PROJECT_NAME={coverity-project-name}
COVERITY_TOKEN={coverity-token}
- COVERITY_USER_EMAIL={coverity-user-email}
- SEARCH_PATHS={coverity-search-paths}
- SEARCH_EXCLUDE_REGEXS={coverity-search-exclude-regexs}
- shell: !include-raw-escape:
- ../../global-jjb/shell/common-variables.sh
- ../../shell/maven-coverity.sh