Add HOWTOs link to ONAP Wiki on Coverity job and view pages
[ci-management.git] / jjb / ci-management / ci-management-coverity.yaml
1 ---
2 # Coverity Scan static analysis
3
4 - job-template:
5     name: '{project-name}-coverity'
6     id: onap-gerrit-maven-coverity
7     description: >
8       <hr/>
9       <h2>How to access Coverity Scan static analysis results</h2>
10       <ol>
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:
14           <ol>
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>
18           </ol>
19         <li>Click on <a href="https://scan.coverity.com/projects/{coverity-project-name}/view_defects">
20           View Defects</a>.</li>
21       </ol>
22       <p>Please note that processing data takes some time. You will get an email when it's done.</p>
23       <p>See more <a href="https://wiki.onap.org/x/Y6vQAw">Coverity Scan HOWTOs</a> on ONAP Developer Wiki.</p>
24       <hr/>
25
26     project-type: freestyle
27     node: '{build-node}'
28     branch: master
29     build-days-to-keep: 7
30     build-timeout: 60
31     cron: '@daily'
32     disabled: false
33     git-url: '$GIT_URL/$PROJECT'
34     java-version: openjdk8
35     mvn-global-settings: global-settings
36     mvn-opts: ''
37     mvn-params: ''
38     mvn-version: mvn35
39     coverity-project-name: ''
40     coverity-token: ''
41     coverity-user-email: ''
42     stream: master
43     submodule-recursive: true
44     submodule-timeout: 10
45     submodule-disable: false
46     archive-artifacts: >
47       **/*.log
48       **/hs_err_*.log
49       **/target/**/feature.xml
50       **/target/failsafe-reports/failsafe-summary.xml
51       **/target/surefire-reports/*-output.txt
52       **/cov-int/build-log.txt
53       **/cov-int/build-timings.txt
54
55     properties:
56       - lf-infra-properties:
57           build-days-to-keep: '{build-days-to-keep}'
58
59     parameters:
60       - lf-infra-parameters:
61           project: '{project}'
62           branch: '{branch}'
63           stream: '{stream}'
64       - lf-infra-maven-parameters:
65           mvn-opts: '{mvn-opts}'
66           mvn-params: '{mvn-params}'
67           mvn-version: '{mvn-version}'
68       - string:
69           name: ARCHIVE_ARTIFACTS
70           default: '{archive-artifacts}'
71           description: Artifacts to archive to the logs server.
72
73     triggers:
74       - timed: '{obj:cron}'
75
76     wrappers:
77       - lf-infra-wrappers:
78           build-timeout: '{build-timeout}'
79           jenkins-ssh-credential: '{jenkins-ssh-credential}'
80
81     builders:
82       - lf-infra-pre-build
83       - lf-maven-install:
84           mvn-version: '{mvn-version}'
85       - lf-update-java-alternatives:
86           java-version: '{java-version}'
87       - lf-provide-maven-settings:
88           global-settings-file: global-settings
89           settings-file: '{mvn-settings}'
90       - inject:
91           properties-content: |
92             COVERITY_PROJECT_NAME={coverity-project-name}
93             COVERITY_TOKEN={coverity-token}
94             COVERITY_USER_EMAIL={coverity-user-email}
95       - shell: !include-raw-escape:
96           - ../../global-jjb/shell/common-variables.sh
97           - ../../shell/maven-coverity.sh
98       - lf-provide-maven-settings-cleanup
99
100     publishers:
101       - lf-infra-publish
102
103     scm:
104       - lf-infra-gerrit-scm:
105           jenkins-ssh-credential: '{jenkins-ssh-credential}'
106           git-url: '{git-url}'
107           refspec: $GERRIT_REFSPEC
108           branch: $GERRIT_BRANCH
109           submodule-recursive: '{submodule-recursive}'
110           submodule-timeout: '{submodule-timeout}'
111           submodule-disable: '{submodule-disable}'
112           choosing-strategy: default