aboutsummaryrefslogtreecommitdiffstats
path: root/jobs/master-builds.yml
blob: 79ce8c2bc168d9740ff39ff679db93d88351a721 (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
# All master branch verification builds, https://jenkins.osmocom.org/jenkins/view/master/

- project:
    name: master_build
    # following default values can be overridden by each repo
    disabled: false
    concurrent: false
    # axes related defaults
    slave_axis: !!python/tuple [osmocom-master-debian9]
    a1_name: a1
    a1: !!python/tuple [default]
    a2_name: a2
    a2: !!python/tuple [default]
    a3_name: a3
    a3: !!python/tuple [default]
    combination_filter: ''
    sequential: false
    # most common build invocation
    cmd: ./contrib/jenkins.sh
    trigger:

    # in alphabetical order
    repos:
      - asn1c

      - cellmgr-ng:
          concurrent: true
          cmd: >
           # keep first line with less indent to preserve newlines
            docker run --rm=true -e HOME=/build -e MAKE=make -e PARALLEL_MAKE="$PARALLEL_MAKE" \
              -e PATH="$PATH:/build_bin" -w /build \
              -i -u build -v "$PWD:/build" -v "$HOME/bin:/build_bin" \
              osmocom:amd64 /build/contrib/jenkins.sh

      - libasn1c:
          # Full triggers would be:
          # trigger: master-osmo-iuh, master-osmo-msc
          # Optimized:
          # osmo-iuh triggers osmo-msc
          trigger: master-osmo-iuh

      - libgtpnl:
          trigger: master-osmo-ggsn, openggsn

      - libosmo-abis:
          # Full triggers would be:
          # trigger: >
          #   master-libosmo-netif, master-osmo-bsc, master-osmo-bts, master-osmo-hlr,
          #   master-osmo-msc, master-osmo-sgsn, master-openbsc
          # Optimized:
          # (see comment at libosmocore)
          trigger: >
            master-libosmo-netif, master-osmo-bts

      - libosmo-dsp:
          cmd: >
           # keep first line with less indent to preserve newlines
            autoreconf --install --force
            ./configure
            $MAKE $PARALLEL_MAKE
            $MAKE distcheck
          trigger: master-osmo-gmr

      - libosmo-netif:
          # Full triggers would be:
          # trigger: >
          #   master-libosmo-sccp, master-openbsc, mastere-osmo-hlr, master-osmo-iuh,
          #   master-osmo-mgw, master-osmo-msc, master-osmo-sgsn
          # Optimized:
          # (see comment at libosmocore)
          trigger: >
            master-libosmo-sccp,
            master-osmo-hlr,
            master-osmo-mgw,
            master-osmo-sgsn

      - libosmo-sccp:
          # Full triggers would be:
          # trigger: >
          #   master-openbsc, master-osmo-bsc, master-osmo-iuh, master-osmo-msc, master-osmo-sgsn
          # Optimized:
          # (see comment at libosmocore)
          trigger: >
            master-openbsc,
            master-osmo-bsc,
            master-osmo-iuh,
            master-osmo-msc,
            master-osmo-sgsn

      - libosmocore:
          a1_name: arch
          a1: !!python/tuple [arm-none-eabi, amd64]
          combination_filter: '!(arch=="arm-none-eabi" && label=="FreeBSD_amd64")'
          cmd: './contrib/jenkins_arch.sh "$arch"'
          # Full triggers would be:
          # trigger: >
          #   master-libosmo-abis, master-libosmo-netif, master-libosmo-sccp, master-openbsc,
          #   master-osmo-bsc, master-osmo-bts, master-osmo-ggsn, master-osmo-gmr, master-osmo-hlr,
          #   master-osmo-iuh, master-osmo-mgw, master-osmo-msc, master-osmo-pcap, master-osmo-pcu,
          #   master-osmo-sgsn, master-osmo-sip-connector, master-osmo-tetra,
          #   master-osmocom-bb, SIMtrace, xgoldmon
          # Optimized:
          # libosmocore
          # -> master-libosmo-abis
          #    -> master-libosmo-netif
          #       -> master-libosmo-sccp
          #          -> master-openbsc
          #          -> master-osmo-bsc
          #          -> master-osmo-iuh
          #             -> master-osmo-msc
          #             -> master-osmo-sgsn
          #          -> master-osmo-msc
          #          -> master-osmo-sgsn
          #       -> master-osmo-hlr
          #       -> master-osmo-mgw
          #       -> master-osmo-sgsn
          #    -> master-osmo-bts
          # -> master-osmo-ggsn
          #    -> master-osmo-sgsn
          # [...]
          trigger: >
            master-libosmo-abis,
            master-osmo-ggsn,
            master-osmo-gmr,
            master-osmo-pcap,
            master-osmo-pcu,
            master-osmo-sip-connector,
            master-osmo-tetra,
            master-osmocom-bb,
            SIMtrace,
            xgoldmon

      - libsmpp34:
          trigger: master-osmo-msc, master-openbsc

      - libtelnet
      - libusrp:
          trigger: master-osmo-trx

      - openbsc:
          a1_name: SMPP
          a1: !!python/tuple [--enable-smpp]
          a2_name: MGCP
          a2: !!python/tuple [--enable-mgcp-transcoding, --disable-mgcp-transcoding]
          a3_name: IU
          a3: !!python/tuple [--disable-iu]
          concurrent: true
          cmd: >
           # keep first line with less indent to preserve newlines
            ARTIFACT_STORE="$HOME/jenkins_build_artifact_store"
            mkdir -p "$ARTIFACT_STORE"
            docker run --rm=true \
              -e HOME=/build \
              -e ARTIFACT_STORE=/artifact_store \
              -e JOB_NAME="$JOB_NAME" \
              -e MAKE=make \
              -e PARALLEL_MAKE="$PARALLEL_MAKE" \
              -e IU="$IU" \
              -e SMPP="$SMPP" \
              -e MGCP="$MGCP" \
              -e PATH="$PATH:/build_bin" \
              -e OSMOPY_DEBUG_TCP_SOCKETS="1" \
              -w /build -i -u build \
              -v "$PWD:/build" \
              -v "$HOME/bin:/build_bin" \
              -v "$ARTIFACT_STORE:/artifact_store" \
              osmocom:amd64 /build/contrib/jenkins.sh

      - osmo-bsc:
          concurrent: true
          cmd: >
           # keep first line with less indent to preserve newlines
            docker run --rm=true \
              -e HOME=/build \
              -e MAKE=make \
              -e PARALLEL_MAKE="$PARALLEL_MAKE" \
              -e PATH="$PATH:/build_bin" \
              -e OSMOPY_DEBUG_TCP_SOCKETS="1" \
              -w /build -i -u build \
              -v "$PWD:/build" -v "$HOME/bin:/build_bin" \
              osmocom:amd64 /build/contrib/jenkins.sh

      - osmo-bts:
          a1_name: FIRMWARE_VERSION
          a1: !!python/tuple [master, femtobts_v2.7, superfemto_v2.4, superfemto_v3.0.1pre, superfemto_v3.1, superfemto_v5.1, v2017.01, origin/nrw/litecell15-next]
          a2_name: BTS_MODEL
          a2: !!python/tuple [sysmo, oct, trx, oct+trx, lc15]
          combination_filter: >
            FIRMWARE_VERSION == "master" ||
            (FIRMWARE_VERSION == "femtobts_v2.7" && BTS_MODEL == "sysmo") ||
            (FIRMWARE_VERSION == "superfemto_v2.4" && BTS_MODEL == "sysmo") ||
            (FIRMWARE_VERSION == "superfemto_v3.0.1pre" && BTS_MODEL == "sysmo") ||
            (FIRMWARE_VERSION == "superfemto_v3.1" && BTS_MODEL == "sysmo") ||
            (FIRMWARE_VERSION == "superfemto_v5.1" && BTS_MODEL == "sysmo") ||
            (FIRMWARE_VERSION == "v2017.01" && BTS_MODEL == "lc15") ||
            (FIRMWARE_VERSION == "origin/nrw/litecell15-next" && BTS_MODEL == "lc15")
          cmd: './contrib/jenkins_bts_model.sh "$BTS_MODEL"'

      - osmo-ggsn:
          a1_name: GTP
          a1: !!python/tuple [--enable-gtp-linux,--disable-gtp-linux]
          cmd: GTP="$GTP" ./contrib/jenkins.sh
          trigger: master-osmo-sgsn

      - osmo-gmr

      - osmo-gsm-manuals:
          # publishing once is plenty
          slave_axis: !!python/tuple [OsmocomBuild1]
          cmd: >
           # keep first line with less indent to preserve newlines
            ./contrib/jenkins.sh --publish

      - osmo-hlr

      - osmo-iuh:
          # Full triggers would be:
          # trigger: master-osmo-msc, master-osmo-sgsn
          # Optimized:
          # (see comment at libosmocore)
          trigger: >
            master-osmo-msc,
            master-osmo-sgsn

      - osmo-mgw:
          a1_name: MGCP
          a1: !!python/tuple [--enable-mgcp-transcoding, --disable-mgcp-transcoding]
          concurrent: true
          cmd: >
           # keep first line with less indent to preserve newlines
            docker run --rm=true \
              -e HOME=/build \
              -e MAKE=make \
              -e PARALLEL_MAKE="$PARALLEL_MAKE" \
              -e MGCP="$MGCP" \
              -e PATH="$PATH:/build_bin" \
              -e OSMOPY_DEBUG_TCP_SOCKETS="1" \
              -w /build -i -u build \
              -v "$PWD:/build" -v "$HOME/bin:/build_bin" \
              osmocom:amd64 /build/contrib/jenkins.sh
          trigger: master-osmo-msc, master-osmo-bsc

      - osmo-msc:
          a1_name: IU
          a1: !!python/tuple [--enable-iu, --disable-iu]
          concurrent: true
          cmd: >
           # keep first line with less indent to preserve newlines
            ARTIFACT_STORE="$HOME/jenkins_build_artifact_store"
            mkdir -p "$ARTIFACT_STORE"
            docker run --rm=true -i \
              -e HOME=/build \
              -e ARTIFACT_STORE=/artifact_store \
              -e JOB_NAME="$JOB_NAME" \
              -e MAKE=make \
              -e PARALLEL_MAKE="$PARALLEL_MAKE" \
              -e IU="$IU" \
              -e PATH="$PATH:/build_bin" \
              -e OSMOPY_DEBUG_TCP_SOCKETS="1" \
              -w /build -u build \
              -v "$PWD:/build" -v "$HOME/bin:/build_bin" \
              -v "$ARTIFACT_STORE:/artifact_store" \
              osmocom:amd64 /build/contrib/jenkins.sh

      - osmo-pcap

      - osmo-pcu:
          scm:
            - git:
                branches:
                  - '*/master'
                  - '*/jerlbeck/master'
          a1_name: FIRMWARE_VERSION
          a1: !!python/tuple [master, v2017.01, origin/nrw/litecell15-next]
          a2_name: with_vty
          a2: !!python/tuple [True, False]
          a3_name: with_dsp
          a3: !!python/tuple [sysmo, lc15, none]
          sequential: true
          combination_filter: >
            (with_vty == "True" && with_dsp == "sysmo" && FIRMWARE_VERSION=="master") ||
            (with_vty == "True" && with_dsp == "lc15" && FIRMWARE_VERSION=="master") ||
            (with_vty == "True" && with_dsp == "lc15" && FIRMWARE_VERSION=="v2017.01") ||
            (with_vty == "True" && with_dsp == "lc15" && FIRMWARE_VERSION=="origin/nrw/litecell15-next") ||
            (with_vty == "False" && with_dsp == "none" && FIRMWARE_VERSION=="master")

      - osmo-sgsn:
          a1_name: IU
          a1: !!python/tuple [--enable-iu, --disable-iu]
          concurrent: true
          cmd: >
           # keep first line with less indent to preserve newlines
            docker run --rm=true \
              -e HOME=/build \
              -e MAKE=make \
              -e PARALLEL_MAKE="$PARALLEL_MAKE" \
              -e IU="$IU" \
              -e PATH="$PATH:/build_bin" \
              -e OSMOPY_DEBUG_TCP_SOCKETS="1" \
              -w /build -i -u build \
              -v "$PWD:/build" -v "$HOME/bin:/build_bin" \
              osmocom:amd64 /build/contrib/jenkins.sh

      - osmo-sip-connector
      - osmo-tetra

      - osmo-trx:
          a1_name: INSTR
          # ARM variants temporarily disabled due to issue OS#3061
          # a1: !!python/tuple [--with-sse, --with-neon, --with-neon-vfpv4]
          a1: !!python/tuple [--with-sse]
          concurrent: true

      - osmocom-bb

    jobs:
      - 'master-{repos}'

- job-template:
    name: 'master-{repos}'
    project-type: matrix
    concurrent: '{obj:concurrent}'
    disabled: '{obj:disabled}'
    retry-count: 3 # scm checkout
    properties:
      - build-discarder:
          days-to-keep: 30
          num-to-keep: 120
          artifact-days-to-keep: -1
          artifact-num-to-keep: -1
    description: |
      Automatic jenkins test job of
      <a href="http://git.osmocom.org/{repos}">{repos}</a>
      <br/><br/>
      <b>Auto-generated using Jenkins Job Builder. DO NOT EDIT MANUALLY!</b>

    execution-strategy:
      sequential: '{obj:sequential}'
      combination-filter: |
        {obj:combination_filter}
    axes:
      - axis:
          type: slave
          name: label
          values: '{obj:slave_axis}'
      - axis:
          type: user-defined
          name: '{obj:a1_name}'
          values: '{obj:a1}'
      - axis:
          type: user-defined
          name: '{obj:a2_name}'
          values: '{obj:a2}'
      - axis:
          type: user-defined
          name: '{obj:a3_name}'
          values: '{obj:a3}'

    scm:
      - git:
         url: git://git.osmocom.org/{repos}
         branches:
           - 'origin/master'
         refspec:
         name:
         wipe-workspace: false
         skip-tag: true

    triggers:
      - pollscm:
          cron: "H/5 * * * *"
          ignore-post-commit-hooks: false
      - timed: "H H * * *"

    builders:
      - shell: '{obj:cmd}'

    publishers:
       - warnings:
           console-log-parsers:
             - 'GNU C Compiler 4 (gcc)'
           resolve-relative-paths: true
       - trigger:
           project: '{obj:trigger}'
       - email:
           recipients: gerrit-log@lists.osmocom.org, laforge@gnumonks.org
           send-to-individuals: true

# vim: expandtab tabstop=2 shiftwidth=2