summaryrefslogtreecommitdiffstats
path: root/jjb/ci-management/ci-management-coverity.yaml
blob: 07527225807d3648e81d2021b15ef47c1ea23bd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
# Coverity Scan static analysis

- job-template:
    name: '{project-name}-coverity'
    id: onap-gerrit-maven-coverity
    description: >
      <hr/>
      <h2>How to access Coverity Scan static analysis results</h2>
      <ol>
        <li>Visit <a href="https://scan.coverity.com/projects/{coverity-project-name}">Coverity Scan
          project page</a>.</li>
        <li>If you have not been added to the project on Coverity Scan service yet:
          <ol>
            <li>Click on <a href="https://scan.coverity.com/memberships/new?project_id={coverity-project-name}">
              Add me to project</a>.</li>
            <li>Wait till the project administrators grant you appropriate permissions.</li>
          </ol>
        <li>Click on <a href="https://scan.coverity.com/projects/{coverity-project-name}/view_defects">
          View Defects</a>.</li>
      </ol>
      <p>Please note that processing data takes some time. You will get an email when it's done.</p>
      <hr/>

    project-type: freestyle
    node: '{build-node}'
    branch: master
    build-days-to-keep: 7
    build-timeout: 60
    cron: '@daily'
    disabled: false
    git-url: '$GIT_URL/$PROJECT'
    java-version: openjdk8
    mvn-global-settings: global-settings
    mvn-opts: ''
    mvn-params: ''
    mvn-version: mvn35
    coverity-project-name: ''
    coverity-token: ''
    coverity-user-email: ''
    stream: master
    submodule-recursive: true
    submodule-timeout: 10
    submodule-disable: false
    archive-artifacts: >
      **/*.log
      **/hs_err_*.log
      **/target/**/feature.xml
      **/target/failsafe-reports/failsafe-summary.xml
      **/target/surefire-reports/*-output.txt

    properties:
      - lf-infra-properties:
          build-days-to-keep: '{build-days-to-keep}'

    parameters:
      - lf-infra-parameters:
          project: '{project}'
          branch: '{branch}'
          stream: '{stream}'
      - lf-infra-maven-parameters:
          mvn-opts: '{mvn-opts}'
          mvn-params: '{mvn-params}'
          mvn-version: '{mvn-version}'
      - string:
          name: ARCHIVE_ARTIFACTS
          default: '{archive-artifacts}'
          description: Artifacts to archive to the logs server.

    triggers:
      - timed: '{obj:cron}'

    wrappers:
      - lf-infra-wrappers:
          build-timeout: '{build-timeout}'
          jenkins-ssh-credential: '{jenkins-ssh-credential}'

    builders:
      - lf-infra-pre-build
      - lf-maven-install:
          mvn-version: '{mvn-version}'
      - lf-update-java-alternatives:
          java-version: '{java-version}'
      - lf-provide-maven-settings:
          global-settings-file: global-settings
          settings-file: '{mvn-settings}'
      - inject:
          properties-content: |
            COVERITY_PROJECT_NAME={coverity-project-name}
            COVERITY_TOKEN={coverity-token}
            COVERITY_USER_EMAIL={coverity-user-email}
      - shell: !include-raw-escape:
          - ../../global-jjb/shell/common-variables.sh
          - ../../shell/maven-coverity.sh
      - lf-provide-maven-settings-cleanup

    publishers:
      - lf-infra-publish

    scm:
      - lf-infra-gerrit-scm:
          jenkins-ssh-credential: '{jenkins-ssh-credential}'
          git-url: '{git-url}'
          refspec: $GERRIT_REFSPEC
          branch: $GERRIT_BRANCH
          submodule-recursive: '{submodule-recursive}'
          submodule-timeout: '{submodule-timeout}'
          submodule-disable: '{submodule-disable}'
          choosing-strategy: default