osmo-ci/jobs/ttcn3-testsuites.yml

337 lines
12 KiB
YAML
Raw Normal View History

---
- project:
name: 'ttcn3-testsuites'
concurrent: false
disabled: false
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 * * *
- ttcn3-ggsn-test-kernel-latest:
blocking: "^(ttcn3|TTCN3-.*)-ggsn-test.*"
timer: 20 04 * * *
- ttcn3-ggsn-test-kernel-git:
blocking: "^(ttcn3|TTCN3-.*)-ggsn-test.*"
timer: 30 04 * * *
# Cache the linux source tree in the workspace of one node
node: ttcn3-ggsn-test-kernel-git
wipe_workspace: false
- 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 * * *
- 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 * * *
# 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-latest:
# blocking: "^(ttcn3|TTCN3-.*)-smlc-test.*"
# timer: 10 10 * * *
- ttcn3-gbproxy-test-latest:
blocking: "^(ttcn3|TTCN3-.*)-gbproxy-test.*"
timer: 20 10 * * *
- ttcn3-cbc-test-latest:
blocking: "^(ttcn3|TTCN3-.*)-cbc-test.*"
timer: 40 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-latest:
# blocking: "^(ttcn3|TTCN3-.*)-smlc-test.*"
# timer: 10 10 * * *
- TTCN3-centos-gbproxy-test:
blocking: "^(ttcn3|TTCN3-.*)-gbproxy-test.*"
timer: 20 10 * * *
- TTCN3-centos-cbc-test:
blocking: "^(ttcn3|TTCN3-.*)-cbc-test.*"
timer: 40 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: '{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'
- string:
name: KERNEL_URL
description: |
(<code>*-kernel-git</code> only) remote URL of git repository,
from which the kernel will be built.
default: 'https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git'
- string:
name: KERNEL_REMOTE_NAME
description: |
(<code>*-kernel-git</code> only) short name for the remote URL,
which will be used to add it to the local git checkout with
<code>git remote add</code>.
default: 'net-next'
- string:
name: KERNEL_BRANCH
description: |
(<code>*-kernel-git</code> only) branch to check out from the
remote with <code>KERNEL_URL</code> and
<code>KERNEL_REMOTE_NAME</code> before building the kernel.
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-git)
DIR="ttcn3-ggsn-test"
export IMAGE_SUFFIX="master"
# Build kernel from source, git repo is defined in the job's
# parameters: KERNEL_URL, KERNEL_REMOTE_NAME, KERNEL_BRANCH
export KERNEL_TEST=1
export KERNEL_BUILD=1
;;
TTCN3-centos-*-latest)
DIR="$(echo "{job-name}" | sed s/^TTCN3-centos\-/ttcn3-/ | sed s/\-latest$//)"
export IMAGE_SUFFIX="latest-centos8"
;;
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
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