summaryrefslogtreecommitdiffstats
path: root/jobs/ttcn3-testsuites.yml
blob: 3b35ab9a26514584a669b426ca7bd39503fe65c4 (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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
---
- project:
    name: 'ttcn3-testsuites'
    concurrent: false
    disabled: false
    description: |
        Run the a testsuite from
        <a href="https://git.osmocom.org/docker-playground/">
          docker-playground.git</a>.<br>
        If this job ends in <code>-latest</code>, the job runs the latest
        stable versions of the Osmocom stack. Otherwise the nightly builds.<br>
        See <a href="https://osmocom.org/projects/cellular-infrastructure/wiki/Titan_TTCN3_Testsuites">
            TTCN3 Testsuite</a> for more information.
    timer: "@midnight"
    node: ttcn3
    # Block *-latest for all master jobs (without suffix)
    blocking: "^{job-name}.*"
    wipe_workspace: true
    jobs:
      - "{job-name}"
    # Folders from docker-playground.git
    job-name:
      # debian-stretch nightly - order by time
      - nplab-m3ua-test:
          blocking: "^(nplab|NPLAB-.*)-m3ua-test.*"
          timer: 00 03 * * *
      - nplab-sua-test:
          blocking: "^(nplab|NPLAB-.*)-sua-test.*"
          timer: 15 03 * * *
      - ttcn3-ggsn-test:
          blocking: "^(ttcn3|TTCN3-.*)-ggsn-test.*"
          timer: 00 04 * * *
      - ttcn3-ggsn-test-kernel:
          blocking: "^(ttcn3|TTCN3-.*)-ggsn-test.*"
          timer: 10 04 * * *
          description: |
            Test osmo-ggsn master with the Debian kernel.
      - ttcn3-ggsn-test-kernel-latest:
          blocking: "^(ttcn3|TTCN3-.*)-ggsn-test.*"
          timer: 20 04 * * *
          description: |
            Test osmo-ggsn latest with the Debian kernel.
      - ttcn3-ggsn-test-kernel-latest-net-next:
          blocking: "^(ttcn3|TTCN3-.*)-ggsn-test.*"
          timer: 25 04 * * *
          # Cache the linux source tree in the workspace of one node
          wipe_workspace: false
          node: ttcn3-ggsn-test-kernel-git
          description: |
            Test osmo-ggsn latest with the Linux kernel built from master of
            <a href="https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/">
              net-next.git</a>.
      - ttcn3-ggsn-test-kernel-latest-torvalds:
          blocking: "^(ttcn3|TTCN3-.*)-ggsn-test.*"
          timer: 30 04 * * *
          # Cache the linux source tree in the workspace of one node
          wipe_workspace: false
          node: ttcn3-ggsn-test-kernel-git
          description: |
            Test osmo-ggsn latest with the Linux kernel built from master of
            <a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/">
              torvalds/linux.git</a>.
      - ttcn3-msc-test:
          blocking: "^(ttcn3|TTCN3-.*)-msc-test.*"
          timer: 40 04 * * *
      - ttcn3-pcu-test:
          blocking: "^(ttcn3|TTCN3-.*)-pcu-test.*"
          timer: 00 05 * * *
      - ttcn3-pcu-test-sns:
          blocking: "^(ttcn3|TTCN3-.*)-pcu-test.*"
          timer: 15 05 * * *
      - ttcn3-sgsn-test:
          blocking: "^(ttcn3|TTCN3-.*)-sgsn-test.*"
          timer: 30 05 * * *
      - ttcn3-bsc-test:
          blocking: "^(ttcn3|TTCN3-.*)-bsc-test.*"
          timer: 00 06 * * *
      - ttcn3-mgw-test:
          blocking: "^(ttcn3|TTCN3-.*)-mgw-test.*"
          timer: 30 06 * * *
      - ttcn3-hlr-test:
          blocking: "^(ttcn3|TTCN3-.*)-hlr-test.*"
          timer: 45 06 * * *
      - ttcn3-bts-test:
          blocking: "^(ttcn3|TTCN3-.*)-bts-test.*"
          timer: 00 07 * * *
      - ttcn3-sip-test:
          blocking: "^(ttcn3|TTCN3-.*)-sip-test.*"
          timer: 30 07 * * *
      - ttcn3-bscnat-test:
          blocking: "^(ttcn3|TTCN3-.*)-bscnat-test.*"
          timer: 00 08 * * *
          disabled: true
      - ttcn3-bsc-test-sccplite:
          blocking: "^(ttcn3|TTCN3-.*)-bsc-test.*"
          timer: 30 08 * * *
      - ttcn3-remsim-test:
          blocking: "^(ttcn3|TTCN3-.*)-remsim-test.*"
          timer: 00 09 * * *
      - ttcn3-stp-test:
          blocking: "^(ttcn3|TTCN3-.*)-stp-test.*"
          timer: 30 09 * * *
      - ttcn3-sccp-test:
          blocking: "^(ttcn3|TTCN3-.*)-sccp-test.*"
          timer: 00 10 * * *
      - ttcn3-smlc-test:
          blocking: "^(ttcn3|TTCN3-.*)-smlc-test.*"
          timer: 10 10 * * *
      - ttcn3-gbproxy-test:
          blocking: "^(ttcn3|TTCN3-.*)-gbproxy-test.*"
          timer: 20 10 * * *
      - ttcn3-gbproxy-test-fr:
          blocking: "^(ttcn3|TTCN3-.*)-gbproxy-test-fr.*"
          timer: 30 10 * * *
          node: hdlc
      - ttcn3-cbc-test:
          blocking: "^(ttcn3|TTCN3-.*)-cbc-test.*"
          timer: 40 10 * * *
      - ttcn3-ns-test:
          blocking: "^(ttcn3|TTCN3-.*)-ns-test.*"
          timer: 00 11 * * *
      - ttcn3-ns-test-sns:
          blocking: "^(ttcn3|TTCN3-.*)-ns-test-sns.*"
          timer: 10 11 * * *
      - ttcn3-ns-test-fr:
          blocking: "^(ttcn3|TTCN3-.*)-ns-test-fr.*"
          timer: 20 11 * * *
          node: hdlc
      - ttcn3-pcap-client-test:
          blocking: "^(ttcn3|TTCN3-.*)-pcap-client-test.*"
          timer: 40 11 * * *

      # debian-stretch latest stable
      - nplab-m3ua-test-latest:
          blocking: "^(nplab|NPLAB-.*)-m3ua-test.*"
          timer: 00 03 * * *
      - nplab-sua-test-latest:
          blocking: "^(nplab|NPLAB-.*)-sua-test.*"
          timer: 15 03 * * *
      - ttcn3-ggsn-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-ggsn-test.*"
          timer: 00 04 * * *
      - ttcn3-msc-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-msc-test.*"
          timer: 30 04 * * *
      - ttcn3-pcu-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-pcu-test.*"
          timer: 00 05 * * *
      - ttcn3-pcu-test-sns-latest:
          blocking: "^(ttcn3|TTCN3-.*)-pcu-test.*"
          timer: 15 05 * * *
      - ttcn3-sgsn-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-sgsn-test.*"
          timer: 30 05 * * *
      - ttcn3-bsc-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-bsc-test.*"
          timer: 00 06 * * *
      - ttcn3-mgw-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-mgw-test.*"
          timer: 30 06 * * *
      - ttcn3-hlr-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-hlr-test.*"
          timer: 45 06 * * *
      - ttcn3-bts-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-bts-test.*"
          timer: 00 07 * * *
      - ttcn3-sip-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-sip-test.*"
          timer: 30 07 * * *
      - ttcn3-bscnat-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-bscnat-test.*"
          timer: 00 08 * * *
          disabled: true
      - ttcn3-bsc-test-sccplite-latest:
          blocking: "^(ttcn3|TTCN3-.*)-bsc-test.*"
          timer: 30 08 * * *
      - ttcn3-remsim-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-remsim-test.*"
          timer: 00 09 * * *
      - ttcn3-stp-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-stp-test.*"
          timer: 30 09 * * *
      #- ttcn3-sccp-test-latest:
      #    blocking: "^(ttcn3|TTCN3-.*)-sccp-test.*"
      #    timer: 00 10 * * *
      - ttcn3-smlc-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-smlc-test.*"
          timer: 10 10 * * *
      # disabled until we have a stable release that supports IP-SNS in SGSN role
      #- ttcn3-gbproxy-test-latest:
          #blocking: "^(ttcn3|TTCN3-.*)-gbproxy-test.*"
          #timer: 20 10 * * *
      - ttcn3-cbc-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-cbc-test.*"
          timer: 40 10 * * *
      - ttcn3-pcap-client-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-pcap-client-test.*"
          timer: 40 11 * * *


      # Jobs below use uppercase TTCN3-$DISTRO, so they get listed separately from the ttcn3-* (debian-stretch) jobs

      # centos8 nightly
      - TTCN3-centos-ggsn-test:
          blocking: "^(ttcn3|TTCN3-.*)-ggsn-test.*"
          timer: 00 04 * * *
      - TTCN3-centos-msc-test:
          blocking: "^(ttcn3|TTCN3-.*)-msc-test.*"
          timer: 30 04 * * *
      - TTCN3-centos-pcu-test:
          blocking: "^(ttcn3|TTCN3-.*)-pcu-test.*"
          timer: 00 05 * * *
      - TTCN3-centos-pcu-test-sns:
          blocking: "^(ttcn3|TTCN3-.*)-pcu-test.*"
          timer: 15 05 * * *
      - TTCN3-centos-sgsn-test:
          blocking: "^(ttcn3|TTCN3-.*)-sgsn-test.*"
          timer: 30 05 * * *
      - TTCN3-centos-bsc-test:
          blocking: "^(ttcn3|TTCN3-.*)-bsc-test.*"
          timer: 00 06 * * *
      - TTCN3-centos-mgw-test:
          blocking: "^(ttcn3|TTCN3-.*)-mgw-test.*"
          timer: 30 06 * * *
      - TTCN3-centos-hlr-test:
          blocking: "^(ttcn3|TTCN3-.*)-hlr-test.*"
          timer: 45 06 * * *
      - TTCN3-centos-bts-test:
          blocking: "^(ttcn3|TTCN3-.*)-bts-test.*"
          timer: 00 07 * * *
      - TTCN3-centos-sip-test:
          blocking: "^(ttcn3|TTCN3-.*)-sip-test.*"
          timer: 30 07 * * *
      - TTCN3-centos-bsc-test-sccplite:
          blocking: "^(ttcn3|TTCN3-.*)-bsc-test.*"
          timer: 30 08 * * *
      - TTCN3-centos-remsim-test:
          blocking: "^(ttcn3|TTCN3-.*)-remsim-test.*"
          timer: 00 09 * * *
      - TTCN3-centos-stp-test:
          blocking: "^(ttcn3|TTCN3-.*)-stp-test.*"
          timer: 30 09 * * *
      - TTCN3-centos-gbproxy-test:
          blocking: "^(ttcn3|TTCN3-.*)-gbproxy-test.*"
          timer: 20 10 * * *
      - TTCN3-centos-cbc-test:
          blocking: "^(ttcn3|TTCN3-.*)-cbc-test.*"
          timer: 40 10 * * *

      # centos8 latest stable
      - TTCN3-centos-ggsn-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-ggsn-test.*"
          timer: 00 04 * * *
      - TTCN3-centos-msc-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-msc-test.*"
          timer: 30 04 * * *
      - TTCN3-centos-pcu-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-pcu-test.*"
          timer: 00 05 * * *
      - TTCN3-centos-pcu-test-sns-latest:
          blocking: "^(ttcn3|TTCN3-.*)-pcu-test.*"
          timer: 15 05 * * *
      - TTCN3-centos-sgsn-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-sgsn-test.*"
          timer: 30 05 * * *
      - TTCN3-centos-bsc-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-bsc-test.*"
          timer: 00 06 * * *
      - TTCN3-centos-mgw-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-mgw-test.*"
          timer: 30 06 * * *
      - TTCN3-centos-hlr-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-hlr-test.*"
          timer: 45 06 * * *
      - TTCN3-centos-bts-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-bts-test.*"
          timer: 00 07 * * *
      - TTCN3-centos-sip-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-sip-test.*"
          timer: 30 07 * * *
      - TTCN3-centos-bsc-test-sccplite-latest:
          blocking: "^(ttcn3|TTCN3-.*)-bsc-test.*"
          timer: 30 08 * * *
      # No osmo-remsim packages for centos8
      #- TTCN3-centos-remsim-test-latest:
      #    blocking: "^(ttcn3|TTCN3-.*)-remsim-test.*"
      #    timer: 00 09 * * *
      - TTCN3-centos-stp-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-stp-test.*"
          timer: 30 09 * * *
      - TTCN3-centos-smlc-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-smlc-test.*"
          timer: 10 10 * * *
      #- TTCN3-centos-sccp-test-latest:
      #    blocking: "^(ttcn3|TTCN3-.*)-sccp-test.*"
      #    timer: 00 10 * * *
      #- TTCN3-centos-gbproxy-test-latest:
          #blocking: "^(ttcn3|TTCN3-.*)-gbproxy-test.*"
          #timer: 20 10 * * *
      - TTCN3-centos-cbc-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-cbc-test.*"
          timer: 40 10 * * *

      # centos8 2021q1 (SYS#5370)
      - TTCN3-centos-pcu-test-2021q1:
          blocking: "^(ttcn3|TTCN3-.*)-pcu-test.*"
          timer: 00 11 * * *
      - TTCN3-centos-pcu-test-sns-2021q1:
          blocking: "^(ttcn3|TTCN3-.*)-pcu-test.*"
          timer: 15 11 * * *
      - TTCN3-centos-bsc-test-2021q1:
          blocking: "^(ttcn3|TTCN3-.*)-bsc-test.*"
          timer: 30 11 * * *
      - TTCN3-centos-mgw-test-2021q1:
          blocking: "^(ttcn3|TTCN3-.*)-mgw-test.*"
          timer: 45 11 * * *
      - TTCN3-centos-bts-test-2021q1:
          blocking: "^(ttcn3|TTCN3-.*)-bts-test.*"
          timer: 00 12 * * *
      - TTCN3-centos-smlc-test-2021q1:
          blocking: "^(ttcn3|TTCN3-.*)-smlc-test.*"
          timer: 15 12 * * *
      - TTCN3-centos-gbproxy-test-2021q1:
          blocking: "^(ttcn3|TTCN3-.*)-gbproxy-test.*"
          timer: 30 12 * * *

- job-template:
    name: '{job-name}'
    project-type: freestyle
    disabled: '{obj:disabled}'
    defaults: global
    description: '{obj:description}'
    node: '{obj:node}'
    parameters:
      - string:
          name: BRANCH
          description: |
                Branch of <code>docker-playground.git</code>.
                Only modify if you are hacking on the docker-playground scripts.
          default: '*/master'
    builders:
      - shell: |-
          export REGISTRY_HOST="registry.osmocom.org"

          # Translate job name to docker-playground dir and relevant
          # environment variables
          case "{job-name}" in
              ttcn3-ggsn-test-kernel)
                  DIR="ttcn3-ggsn-test"
                  export IMAGE_SUFFIX="master"
                  # Run against debian's kernel
                  export KERNEL_TEST=1
                  ;;
              ttcn3-ggsn-test-kernel-latest)
                  DIR="ttcn3-ggsn-test"
                  export IMAGE_SUFFIX="latest"
                  export KERNEL_TEST=1
                  ;;
              ttcn3-ggsn-test-kernel-latest-net-next)
                  DIR="ttcn3-ggsn-test"
                  export IMAGE_SUFFIX="latest"
                  export KERNEL_TEST=1
                  export KERNEL_BUILD=1
                  export KERNEL_URL="https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git"
                  export KERNEL_REMOTE_NAME="net-next"
                  export KERNEL_BRANCH="master"
                  ;;
              ttcn3-ggsn-test-kernel-latest-torvalds)
                  DIR="ttcn3-ggsn-test"
                  export IMAGE_SUFFIX="latest"
                  export KERNEL_TEST=1
                  export KERNEL_BUILD=1
                  export KERNEL_URL="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"
                  export KERNEL_REMOTE_NAME="torvalds"
                  export KERNEL_BRANCH="master"
                  ;;
              TTCN3-centos-*-latest)
                  DIR="$(echo "{job-name}" | sed s/^TTCN3-centos\-/ttcn3-/ | sed s/\-latest$//)"
                  export IMAGE_SUFFIX="latest-centos8"
                  ;;
              TTCN3-centos-*-20*q*)
                  export OSMOCOM_REPO_TESTSUITE_MIRROR="http://download.opensuse.org"
                  export OSMOCOM_REPO_MIRROR="https://downloads.osmocom.org"
                  export OSMOCOM_REPO_PATH="osmo-maintained"
                  export OSMOCOM_REPO_VERSION="$(echo "{job-name}" | grep -o -P -- "20\d\dq.*$")"  # e.g. "2021q1"
                  export IMAGE_SUFFIX="$OSMOCOM_REPO_VERSION-centos8"
                  DIR="$(echo "{job-name}" | sed s/^TTCN3-centos\-/ttcn3-/ | sed s/\-$OSMOCOM_REPO_VERSION$//)"
                  ;;
              TTCN3-centos-*)
                  DIR="$(echo "{job-name}" | sed s/^TTCN3-centos\-/ttcn3-/)"
                  export IMAGE_SUFFIX="master-centos8"
                  ;;
              *-latest)
                  DIR="$(echo "{job-name}" | sed s/\-latest$//)"
                  export IMAGE_SUFFIX="latest"
                  ;;
              *)
                  DIR="{job-name}"
                  export IMAGE_SUFFIX="master"
                  ;;
          esac

          cd "$DIR"
          ./jenkins.sh
    scm:
      - git:
          branches:
            - '$BRANCH'
          url: git://git.osmocom.org/docker-playground
          git-config-name: 'Jenkins Builder'
          git-config-email: 'jenkins@osmocom.org'
          wipe-workspace: "{obj:wipe_workspace}"
    triggers:
      - timed: "{obj:timer}"
    publishers:
      - junit:
          results: '**/junit-xml-*.log'
          allow-empty-results: false
      - email:
          notify-every-unstable-build: true
          recipients: laforge@gnumonks.org osmith@sysmocom.de
          send-to-individuals: false
      - archive:
          allow-empty: false
          artifacts: logs/**/*
          case-sensitive: true
          default-excludes: true
          fingerprint: false
          only-if-success: false
    properties:
    - build-blocker:
        use-build-blocker: true
        blocking-jobs:
          - "{obj:blocking}"
    - build-discarder:
        days-to-keep: 30
        num-to-keep: 120
        artifact-days-to-keep: -1
        artifact-num-to-keep: -1

# vim: expandtab tabstop=2 shiftwidth=2