summaryrefslogtreecommitdiffstats
path: root/jobs/ttcn3-testsuites.yml
blob: 2102c1e172b8ec51e7672267126e98b50dfd548d (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
---
- project:
    name: 'ttcn3-testsuites'
    concurrent: false
    disabled: false
    timer: "@midnight"
    # Block *-latest for all master jobs (without suffix)
    blocking: "^{job-name}.*"
    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-msc-test:
          blocking: "^(ttcn3|TTCN3-.*)-msc-test.*"
          timer: 30 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 * * *
      - 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 * * *

      # 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 * * *
      - 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:
      #    blocking: "^(ttcn3|TTCN3-.*)-smlc-test.*"
      #    timer: 10 10 * * *
      - ttcn3-gbproxy-test-latest:
          blocking: "^(ttcn3|TTCN3-.*)-gbproxy-test.*"
          timer: 20 10 * * *

      # 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-sccp-test-latest:
      #    blocking: "^(ttcn3|TTCN3-.*)-sccp-test.*"
      #    timer: 00 10 * * *
      #- ttcn3-smlc-test:
      #    blocking: "^(ttcn3|TTCN3-.*)-smlc-test.*"
      #    timer: 10 10 * * *
      - TTCN3-centos-gbproxy-test:
          blocking: "^(ttcn3|TTCN3-.*)-gbproxy-test.*"
          timer: 20 10 * * *


- job-template:
    name: '{job-name}'
    project-type: freestyle
    disabled: '{obj:disabled}'
    defaults: global
    description: |
        Run the <code>{job-name}</code> 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>
        Generated with the jenkins-job-builder config introduced in
        <a href="https://osmocom.org/issues/3268">OS#3268</a>.<br>
        See <a href="https://osmocom.org/projects/cellular-infrastructure/wiki/Titan_TTCN3_Testsuites">
            TTCN3 Testsuite</a> for more information.
    node: ttcn3
    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"
          case "{job-name}" in
              TTCN3-centos-*-latest)
                  cd "$(echo "{job-name}" | sed s/^TTCN3-centos\-/ttcn3-/ | sed s/\-latest$//)"
                  IMAGE_SUFFIX="latest-centos8" ./jenkins.sh
                  ;;
              TTCN3-centos-*)
                  cd "$(echo "{job-name}" | sed s/^TTCN3-centos\-/ttcn3-/)"
                  IMAGE_SUFFIX="master-centos8" ./jenkins.sh
                  ;;
              *-latest)
                  cd "$(echo "{job-name}" | sed s/\-latest$//)"
                  IMAGE_SUFFIX="latest" ./jenkins.sh
                  ;;
              *)
                  cd "{job-name}"
                  IMAGE_SUFFIX="master" ./jenkins.sh
                  ;;
          esac
    scm:
      - git:
          branches:
            - '$BRANCH'
          url: git://git.osmocom.org/docker-playground
          git-config-name: 'Jenkins Builder'
          git-config-email: 'jenkins@osmocom.org'
    triggers:
      - timed: "{obj:timer}"
    publishers:
      - junit:
          results: '**/junit-xml-*.log'
          allow-empty-results: false
      - email:
          notify-every-unstable-build: true
          recipients: laforge@gnumonks.org
          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