2 # Coverity Scan static analysis
5 name: '{project-name}-coverity'
6 id: onap-gerrit-maven-coverity
9 <h2>How to access Coverity Scan static analysis results</h2>
11 <li>Visit <a href="https://scan.coverity.com/projects/{coverity-project-name}">Coverity Scan
12 project page</a>.</li>
13 <li>If you have not been added to the project on Coverity Scan service yet:
15 <li>Click on <a href="https://scan.coverity.com/memberships/new?project_id={coverity-project-name}">
16 Add me to project</a>.</li>
17 <li>Wait till the project administrators grant you appropriate permissions.</li>
19 <li>Click on <a href="https://scan.coverity.com/projects/{coverity-project-name}/view_defects">
20 View Defects</a>.</li>
22 <p>Please note that processing data takes some time. You will get an email when it's done.</p>
25 project-type: freestyle
33 git-url: '$GIT_URL/$PROJECT'
34 java-version: openjdk8
35 mvn-global-settings: global-settings
39 coverity-project-name: ''
41 coverity-user-email: ''
42 coverity-search-paths: ''
43 coverity-search-exclude-regexs: ''
45 submodule-recursive: true
47 submodule-disable: false
49 cov-int/BUILD.metrics.xml
51 cov-int/build-timings.txt
52 cov-int/cov-import-scm-timings.txt
53 cov-int/coverity-scan-analysed-files.txt
54 cov-int/scm-untracked-files.txt
56 cov-int/java-security-da-input.dat
57 cov-int/java-security-da-whitelist.dat
58 cov-int/jsp-compilation-log.txt
59 cov-int/jsp-debug-log.txt
63 - lf-infra-properties:
64 build-days-to-keep: '{build-days-to-keep}'
67 - lf-infra-parameters:
71 - lf-infra-maven-parameters:
72 mvn-opts: '{mvn-opts}'
73 mvn-params: '{mvn-params}'
74 mvn-version: '{mvn-version}'
76 name: ARCHIVE_ARTIFACTS
77 default: '{archive-artifacts}'
78 description: Artifacts to archive to the logs server.
82 description: Do not submit results to Coverity Scan server at the end of the build.
89 build-timeout: '{build-timeout}'
90 jenkins-ssh-credential: '{jenkins-ssh-credential}'
95 mvn-version: '{mvn-version}'
96 - lf-update-java-alternatives:
97 java-version: '{java-version}'
98 - lf-provide-maven-settings:
99 global-settings-file: global-settings
100 settings-file: '{mvn-settings}'
102 properties-content: |
103 COVERITY_PROJECT_NAME={coverity-project-name}
104 COVERITY_TOKEN={coverity-token}
105 COVERITY_USER_EMAIL={coverity-user-email}
106 SEARCH_PATHS={coverity-search-paths}
107 SEARCH_EXCLUDE_REGEXS={coverity-search-exclude-regexs}
108 - shell: !include-raw-escape:
109 - ../../global-jjb/shell/common-variables.sh
110 - ../../shell/maven-coverity.sh
111 - lf-provide-maven-settings-cleanup
117 - lf-infra-gerrit-scm:
118 jenkins-ssh-credential: '{jenkins-ssh-credential}'
120 refspec: $GERRIT_REFSPEC
121 branch: $GERRIT_BRANCH
122 submodule-recursive: '{submodule-recursive}'
123 submodule-timeout: '{submodule-timeout}'
124 submodule-disable: '{submodule-disable}'
125 choosing-strategy: default