aboutsummaryrefslogtreecommitdiffstats
path: root/jobs/master-builds-dahdi.yml
blob: 8f6d070458bb1c3bb12df2554c3cea355a7f4f9c (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
- project:
    name: master-builds-dahdi-linux-stable
    type: stable
    repo: 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git'
    linux-ver:
      - "linux-4.19.y"
      - "linux-5.10.y"
      - "linux-6.1.y"
    jobs:
      - 'master-dahdi-linux-{type}-{linux-ver}'

- project:
    name: master-builds-dahdi-linux-torvalds
    type: torvalds
    repo: 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git'
    linux-ver:
      - "master"
    jobs:
      - 'master-dahdi-linux-{type}-{linux-ver}'

- job-template:
    name: 'master-dahdi-linux-{type}-{linux-ver}'
    project-type: freestyle
    node: osmocom-master
    concurrent: true
    retry-count: 0 # scm checkout
    properties:
      - build-discarder:
          days-to-keep: 30
          num-to-keep: 120
    description: |
      Automatic jenkins test job 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: '{repo}'
         branches:
           - '{linux-ver}'
         refspec: '{linux-ver}'
         shallow-clone: true
         wipe-workspace: false
         clean:
          before: true

    triggers:
      - timed: "H 23 * * *"

    builders:
      - shell: |
          rm -rf dahdi-linux
          git clone \
            --depth=1 \
            https://gerrit.osmocom.org/dahdi-linux
          git -C dahdi-linux log --oneline

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

    publishers:
       - warnings:
           console-log-parsers:
             - 'GNU C Compiler 4 (gcc)'
           resolve-relative-paths: true
       - email:
           recipients: 'jenkins-notifications@lists.osmocom.org laforge@gnumonks.org'
           send-to-individuals: true

# vim: expandtab tabstop=2 shiftwidth=2