aboutsummaryrefslogtreecommitdiffstats
path: root/jobs/gerrit-verifications-dahdi.yml
blob: 534309618b385424d35e49353c0059b0b9755819 (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
- project:
    name: gerrit-dahdi-linux
    node: osmocom-gerrit-debian9
    linux-ver:
      - "v4.19"
      - "v5.10"
      - "master"
    jobs:
      - 'gerrit-dahdi-linux-{linux-ver}'

- job-template:
    name: 'gerrit-dahdi-linux-{linux-ver}'
    project-type: freestyle
    node: osmocom-gerrit-debian9
    concurrent: true
    retry-count: 0 # scm checkout
    properties:
      - build-discarder:
          days-to-keep: 30
          num-to-keep: 120
          artifact-days-to-keep: -1
          artifact-num-to-keep: -1
    description: |
      Pending gerrit code reviews of
      <a href="https://gerrit.osmocom.org/#/q/status:open+project:dahdi-linux">dahdi-linux</a>
      built against linux {linux-ver}
      (<a href="https://osmocom.org/issues/5407">OS#5407</a>)
      <br/><br/>
      <b>Auto-generated using Jenkins Job Builder. DO NOT EDIT MANUALLY!</b>

    scm:
      # Let jenkins clone the big linux repository and keep it between builds
      # (wipe-workspace is false). Clone dahdi-linux with code from gerrit in
      # the shell part below.
      - git:
         basedir: 'linux'
         url: 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git'
         branches:
           - '{linux-ver}'
         refspec: '{linux-ver}'
         shallow-clone: true
         wipe-workspace: false
         clean:
          before: true

    triggers:
      - gerrit:
          trigger-on:
            - patchset-created-event:
                exclude-drafts: true
                exclude-no-code-change: true
          projects:
            - project-compare-type: 'PLAIN'
              project-pattern: 'dahdi-linux'
              branches:
                - branch-compare-type: 'ANT'
                  branch-pattern: '**'
          skip-vote:
              successful: false
              failed: false
              unstable: false
              notbuilt: false
          silent: false
          escape-quotes: false
          server-name: gerrit.osmocom.org

    builders:
      - shell: |
          rm -rf dahdi-linux
          git init dahdi-linux
          cd dahdi-linux
          git config advice.detachedHead false
          git fetch \
            --depth=1 \
            https://gerrit.osmocom.org/dahdi-linux \
            "$GERRIT_REFSPEC"
          git checkout FETCH_HEAD
          cd ..

          docker run \
            --rm=true \
            -e "KSRC=/linux" \
            -v "$PWD/dahdi-linux:/build" \
            -v "$PWD/linux:/linux" \
            "$USER/debian-buster-jenkins" \
            timeout 10m su build -c /build/contrib/jenkins.sh

    publishers:
       - warnings:
           console-log-parsers:
             - 'GNU C Compiler 4 (gcc)'
           resolve-relative-paths: true

# vim: expandtab tabstop=2 shiftwidth=2