summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/jobs/rpm.yml
blob: 308e12a054111de4b2de0223505bc9b1ca65dd50 (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
- project:
    name: 'rpm'
    buildversion:
      - el7:
          build_flag: epel-7-x86_64
          node_name: rpm7
      - fedora:
          build_flag: fedora-30-x86_64
          node_name: fedora30
      - rawhide:
          build_flag: fedora-rawhide-x86_64
          node_name: fedora30
    jobs:
      - '{name}-{buildversion}'

- job-template:
    name: '{name}-{buildversion}'
    node: '{node_name}'
    description: Creates RPMs for developers and those who need to verify the patch
    project-type: freestyle
    concurrent: true

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

    scm:
    - glusterfs

    triggers:
    - gerrit:
        trigger-on:
          - change-merged-event
        projects:
          - project-compare-type: 'PLAIN'
            project-pattern: 'glusterfs'
            branches:
              - branch-compare-type: 'PLAIN'
                branch-pattern: 'master'

    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

    publishers:
    - rpm
    - post-tasks:
        - matches:
            - log-text: Build was aborted
          script: !include-raw: ../scripts/rpm-cleanup.sh

    builders:
        - shell: !include-raw: ../scripts/glusterfs-rpms.sh

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