summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/jobs/lcov.yml
blob: 51bf750f35766ce9b60816c2b0899c6eafe2af1d (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
- job:
    name: line-coverage
    node: lcov
    description: Checks line coverage by the regression test in gluster
    project-type: freestyle
    concurrent: true

    scm:
    - git:
        branches:
        - $GERRIT_BRANCH
        refspec: $GERRIT_REFSPEC
        choosing-strategy: gerrit
        url: https://github.com/gluster/glusterfs

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

    triggers:
    - timed: "H 0 * * *"

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

    publishers:
    - html-publisher:
        name: "Line Coverage Report"
        dir: "coverage/"
        files: "index.html"
        keep-all: true
        link-to-last-build: true
    - post-tasks:
        - matches:
            - log-text: Build was aborted
          script: |
              sudo reboot
    - post-tasks:
        - matches:
            - log-text: Building remotely
          script: |
              sudo chown -R jenkins:jenkins $WORKSPACE

    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

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