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: ''
41 coverity-search-paths: ''
42 coverity-search-exclude-regexs: ''
44 submodule-recursive: true
46 submodule-disable: false
48 cov-int/BUILD.metrics.xml
50 cov-int/build-timings.txt
51 cov-int/cov-import-scm-timings.txt
52 cov-int/coverity-scan-analysed-files.txt
53 cov-int/scm-untracked-files.txt
55 cov-int/java-security-da-input.dat
56 cov-int/java-security-da-whitelist.dat
57 cov-int/jsp-compilation-log.txt
58 cov-int/jsp-debug-log.txt
62 - lf-infra-properties:
63 build-days-to-keep: '{build-days-to-keep}'
66 - lf-infra-parameters:
70 - lf-infra-maven-parameters:
71 mvn-opts: '{mvn-opts}'
72 mvn-params: '{mvn-params}'
73 mvn-version: '{mvn-version}'
75 name: ARCHIVE_ARTIFACTS
76 default: '{archive-artifacts}'
77 description: Artifacts to archive to the logs server.
84 build-timeout: '{build-timeout}'
85 jenkins-ssh-credential: '{jenkins-ssh-credential}'
90 mvn-version: '{mvn-version}'
91 - lf-update-java-alternatives:
92 java-version: '{java-version}'
93 - lf-provide-maven-settings:
94 global-settings-file: global-settings
95 settings-file: '{mvn-settings}'
98 COVERITY_PROJECT_NAME={coverity-project-name}
99 COVERITY_TOKEN={coverity-token}
100 COVERITY_USER_EMAIL={coverity-user-email}
101 SEARCH_PATHS={coverity-search-paths}
102 SEARCH_EXCLUDE_REGEXS={coverity-search-exclude-regexs}
103 - shell: !include-raw-escape:
104 - ../../global-jjb/shell/common-variables.sh
105 - ../../shell/maven-coverity.sh
106 - lf-provide-maven-settings-cleanup
112 - lf-infra-gerrit-scm:
113 jenkins-ssh-credential: '{jenkins-ssh-credential}'
115 refspec: $GERRIT_REFSPEC
116 branch: $GERRIT_BRANCH
117 submodule-recursive: '{submodule-recursive}'
118 submodule-timeout: '{submodule-timeout}'
119 submodule-disable: '{submodule-disable}'
120 choosing-strategy: default