summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/jobs/clang.yml
blob: dce5a11a2217c37f251ca1849f8adcbb17686cf3 (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
- job:
    name: clang-scan
    node: fedora
    description: Run the clang scan-build on gluster code
    project-type: freestyle
    concurrent: true

    scm:
    - glusterfs

    properties:
    - discard-after-x:
        x: 30
    - one-build-per-node

    builders:
    - shell: !include-raw: ../scripts/clang.sh

    publishers:
    - scan-build:
        mark-unstable: true
        threshold: 65
    - post-tasks:
        - matches:
            - log-text: Building remotely
          script: |
              sudo mock -r $MOCK_CHROOT --config-opts=dnf_warning=False --clean
              sudo chown -R jenkins:jenkins clangScanBuildReports

    parameters:
    - string:
        default: refs/heads/master
        description: 'For review 12345 and patch set 6, this will be refs/changes/45/12345/6. Default: Tip of master'
        name: GERRIT_REFSPEC
    - string:
        default: master
        description: 'Name of the branch you want to build from. We usually build from master'
        name: GERRIT_BRANCH
    - string:
        default: fedora-29-x86_64
        description: 'Name of the mock chroot used to build'
        name: MOCK_CHROOT

    wrappers:
    - timestamps