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
32 git-url: '$GIT_URL/$PROJECT'
33 java-version: openjdk8
34 mvn-global-settings: global-settings
38 coverity-project-name: ''
40 coverity-user-email: ''
42 submodule-recursive: true
44 submodule-disable: false
48 **/target/**/feature.xml
49 **/target/failsafe-reports/failsafe-summary.xml
50 **/target/surefire-reports/*-output.txt
51 **/cov-int/build-log.txt
52 **/cov-int/build-timings.txt
55 - lf-infra-properties:
56 build-days-to-keep: '{build-days-to-keep}'
59 - lf-infra-parameters:
63 - lf-infra-maven-parameters:
64 mvn-opts: '{mvn-opts}'
65 mvn-params: '{mvn-params}'
66 mvn-version: '{mvn-version}'
68 name: ARCHIVE_ARTIFACTS
69 default: '{archive-artifacts}'
70 description: Artifacts to archive to the logs server.
77 build-timeout: '{build-timeout}'
78 jenkins-ssh-credential: '{jenkins-ssh-credential}'
83 mvn-version: '{mvn-version}'
84 - lf-update-java-alternatives:
85 java-version: '{java-version}'
86 - lf-provide-maven-settings:
87 global-settings-file: global-settings
88 settings-file: '{mvn-settings}'
91 COVERITY_PROJECT_NAME={coverity-project-name}
92 COVERITY_TOKEN={coverity-token}
93 COVERITY_USER_EMAIL={coverity-user-email}
94 - shell: !include-raw-escape:
95 - ../../global-jjb/shell/common-variables.sh
96 - ../../shell/maven-coverity.sh
97 - lf-provide-maven-settings-cleanup
103 - lf-infra-gerrit-scm:
104 jenkins-ssh-credential: '{jenkins-ssh-credential}'
106 refspec: $GERRIT_REFSPEC
107 branch: $GERRIT_BRANCH
108 submodule-recursive: '{submodule-recursive}'
109 submodule-timeout: '{submodule-timeout}'
110 submodule-disable: '{submodule-disable}'
111 choosing-strategy: default