summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/jobs/clang-format.yml
blob: 3fb4b8d9c4c22df55369fdab385ec7e7c1db8f1e (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
- job:
    name: clang-format
    node: fedora
    description: Pre-commit clang-format check
    project-type: freestyle
    concurrent: true

    scm:
    - glusterfs

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

    triggers:
    - gerrit:
        trigger-on:
          - patchset-created-event:
              exclude-drafts: false
              exclude-trivial-rebase: false
              exclude-no-code-change: false
          - draft-published-event
          - comment-added-contains-event:
              comment-contains-value: "recheck smoke"
        server-name: review.gluster.org_for-smoke-jobs
        projects:
          - project-compare-type: 'PLAIN'
            project-pattern: 'glusterfs'
            branches:
              - branch-compare-type: 'PLAIN'
                branch-pattern: 'release'
              - branch-compare-type: 'PLAIN'
                branch-pattern: 'release-5'

    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

    builders:
    - shell: !include-raw: ../scripts/clang-format.py

    wrappers:
    - timestamps
    - timeout:
        timeout: 30
        abort: true
        type: absolute