<freeStyleBuild _class='hudson.model.FreeStyleBuild'><action _class='hudson.model.CauseAction'><cause _class='hudson.triggers.SCMTrigger$SCMTriggerCause'><shortDescription>Started by an SCM change</shortDescription></cause></action><action></action><action _class='hudson.plugins.git.util.BuildData'><buildsByBranchName><refsremotesoriginmaster _class='hudson.plugins.git.util.Build'><buildNumber>192</buildNumber><marked><SHA1>79e48fd3ae1279eeaa3373d92d343f2dbfae075e</SHA1><branch><SHA1>79e48fd3ae1279eeaa3373d92d343f2dbfae075e</SHA1><name>refs/remotes/origin/master</name></branch></marked><revision><SHA1>79e48fd3ae1279eeaa3373d92d343f2dbfae075e</SHA1><branch><SHA1>79e48fd3ae1279eeaa3373d92d343f2dbfae075e</SHA1><name>refs/remotes/origin/master</name></branch></revision></refsremotesoriginmaster></buildsByBranchName><lastBuiltRevision><SHA1>79e48fd3ae1279eeaa3373d92d343f2dbfae075e</SHA1><branch><SHA1>79e48fd3ae1279eeaa3373d92d343f2dbfae075e</SHA1><name>refs/remotes/origin/master</name></branch></lastBuiltRevision><remoteUrl>git://git.osmocom.org/docker-playground</remoteUrl><scmName></scmName></action><action _class='hudson.plugins.git.GitTagAction'></action><action></action><action></action><action _class='org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction'></action><building>false</building><displayName>#192</displayName><duration>486</duration><estimatedDuration>255</estimatedDuration><fullDisplayName>update-osmo-ci-on-slaves-dp #192</fullDisplayName><id>192</id><inProgress>false</inProgress><keepLog>false</keepLog><number>192</number><queueId>408171</queueId><result>SUCCESS</result><timestamp>1614328568931</timestamp><url>https://jenkins.osmocom.org/jenkins/view/SDR/job/update-osmo-ci-on-slaves-dp/192/</url><builtOn>build2-deb9build-ansible</builtOn><changeSet _class='hudson.plugins.git.GitChangeSetList'><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>ttcn3-sgsn-test/jenkins.sh</affectedPath><affectedPath>ttcn3-sccp-test/jenkins.sh</affectedPath><affectedPath>nplab-sua-test/jenkins.sh</affectedPath><affectedPath>ttcn3-sip-test/jenkins.sh</affectedPath><affectedPath>ttcn3-gbproxy-test-fr/jenkins.sh</affectedPath><affectedPath>ttcn3-mgw-test/jenkins.sh</affectedPath><affectedPath>ttcn3-cbc-test/jenkins.sh</affectedPath><affectedPath>ttcn3-pcu-test/jenkins-sns.sh</affectedPath><affectedPath>ttcn3-remsim-test/jenkins.sh</affectedPath><affectedPath>ttcn3-gbproxy-test/jenkins.sh</affectedPath><affectedPath>ttcn3-msc-test/jenkins.sh</affectedPath><affectedPath>ttcn3-bts-test/jenkins.sh</affectedPath><affectedPath>jenkins-common.sh</affectedPath><affectedPath>ttcn3-pcu-test/jenkins.sh</affectedPath><affectedPath>ttcn3-ggsn-test/jenkins.sh</affectedPath><affectedPath>ttcn3-bscnat-test/jenkins.sh</affectedPath><affectedPath>ttcn3-hlr-test/jenkins.sh</affectedPath><affectedPath>ttcn3-bsc-test/jenkins-sccplite.sh</affectedPath><affectedPath>ttcn3-smlc-test/jenkins.sh</affectedPath><affectedPath>osmo-gsm-tester/jenkins.sh</affectedPath><affectedPath>nplab-m3ua-test/jenkins.sh</affectedPath><affectedPath>ttcn3-nitb-sysinfo/jenkins.sh</affectedPath><affectedPath>ttcn3-bsc-test/jenkins.sh</affectedPath><affectedPath>ttcn3-stp-test/jenkins.sh</affectedPath><affectedPath>ttcn3-fr-test/jenkins.sh</affectedPath><commitId>12b961942af0c6761573d0632ca0e16339fb33c3</commitId><timestamp>1614328326000</timestamp><author><absoluteUrl>https://jenkins.osmocom.org/jenkins/user/osmith</absoluteUrl><fullName>Oliver Smith</fullName></author><authorEmail>osmith@sysmocom.de</authorEmail><comment>jenkins-common.sh: add common clean up trap

Add set_clean_up_trap() in jenkins-common.sh and run it at the beginning
of the jenkins.sh files. Move the common clean up code from the end of
every jenkins.sh file into clean_up_common(), which gets called by the
trap. Add a custom clean_up() function to those jenkins.sh files that
need additional clean up.

Replace explicit container stop commands (for containers attached to the
docker network) with one call to network_clean() in clean_up_common(). It
kills all containers attached to the docker network.

The motivation for this change is the upcoming optional build of initrd
and kernel during ttcn3-ggsn-test/jenkins.sh. After building these, a
short smoke test will be performed to make sure we can boot the kernel
and initrd, before continuing to run the entire testsuite against it. If
building or the smoke test fails, we must do a proper clean up of the
network and fix permissions.

Related: OS#3208
Change-Id: I807c6221d22fec31db23e2516e477a3eb43347fb
</comment><date>2021-02-26 09:32:06 +0100</date><id>12b961942af0c6761573d0632ca0e16339fb33c3</id><msg>jenkins-common.sh: add common clean up trap</msg><path><editType>edit</editType><file>ttcn3-bsc-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-remsim-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-gbproxy-test/jenkins.sh</file></path><path><editType>edit</editType><file>osmo-gsm-tester/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-smlc-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-bsc-test/jenkins-sccplite.sh</file></path><path><editType>edit</editType><file>ttcn3-bscnat-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-stp-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-gbproxy-test-fr/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-msc-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-hlr-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-bts-test/jenkins.sh</file></path><path><editType>edit</editType><file>nplab-sua-test/jenkins.sh</file></path><path><editType>edit</editType><file>jenkins-common.sh</file></path><path><editType>edit</editType><file>ttcn3-sccp-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-pcu-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-mgw-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-nitb-sysinfo/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-pcu-test/jenkins-sns.sh</file></path><path><editType>edit</editType><file>ttcn3-sip-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-fr-test/jenkins.sh</file></path><path><editType>edit</editType><file>nplab-m3ua-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-cbc-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-ggsn-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-sgsn-test/jenkins.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>ttcn3-sgsn-test/jenkins.sh</affectedPath><affectedPath>ttcn3-sccp-test/jenkins.sh</affectedPath><affectedPath>nplab-sua-test/jenkins.sh</affectedPath><affectedPath>ttcn3-ggsn-test/jenkins.sh</affectedPath><affectedPath>ttcn3-pcu-test/jenkins.sh</affectedPath><affectedPath>ttcn3-sip-test/jenkins.sh</affectedPath><affectedPath>ttcn3-bscnat-test/jenkins.sh</affectedPath><affectedPath>ttcn3-hlr-test/jenkins.sh</affectedPath><affectedPath>ttcn3-cbc-test/jenkins.sh</affectedPath><affectedPath>ttcn3-mgw-test/jenkins.sh</affectedPath><affectedPath>ttcn3-gbproxy-test-fr/jenkins.sh</affectedPath><affectedPath>ttcn3-bsc-test/jenkins-sccplite.sh</affectedPath><affectedPath>ttcn3-pcu-test/jenkins-sns.sh</affectedPath><affectedPath>ttcn3-smlc-test/jenkins.sh</affectedPath><affectedPath>osmo-gsm-tester/jenkins.sh</affectedPath><affectedPath>nplab-m3ua-test/jenkins.sh</affectedPath><affectedPath>ttcn3-remsim-test/jenkins.sh</affectedPath><affectedPath>ttcn3-nitb-sysinfo/jenkins.sh</affectedPath><affectedPath>ttcn3-msc-test/jenkins.sh</affectedPath><affectedPath>ttcn3-gbproxy-test/jenkins.sh</affectedPath><affectedPath>ttcn3-bsc-test/jenkins.sh</affectedPath><affectedPath>ttcn3-stp-test/jenkins.sh</affectedPath><affectedPath>ttcn3-bts-test/jenkins.sh</affectedPath><affectedPath>ttcn3-fr-test/jenkins.sh</affectedPath><commitId>033c6ab1be7e5ab5883927465cd5313551df5bab</commitId><timestamp>1614328354000</timestamp><author><absoluteUrl>https://jenkins.osmocom.org/jenkins/user/osmith</absoluteUrl><fullName>Oliver Smith</fullName></author><authorEmail>osmith@sysmocom.de</authorEmail><comment>*/jenkins.sh: set -e after setting clean up trap

Abort the script and trigger the clean up script, whenever any of the
commands below to prepare the testsuite are failing. This saves time
with figuring out why suddenly all or most tests are failing, and avoids
running the entire testsuite on jenkins if it's obviously not going to
work.

Related: OS#3208
Change-Id: Ie68da2affda8c96b3a515a857a921a05f1bf8ef7
</comment><date>2021-02-26 09:32:34 +0100</date><id>033c6ab1be7e5ab5883927465cd5313551df5bab</id><msg>*/jenkins.sh: set -e after setting clean up trap</msg><path><editType>edit</editType><file>nplab-m3ua-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-bsc-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-nitb-sysinfo/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-sip-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-smlc-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-sccp-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-msc-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-stp-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-fr-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-hlr-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-bscnat-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-cbc-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-mgw-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-pcu-test/jenkins-sns.sh</file></path><path><editType>edit</editType><file>ttcn3-sgsn-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-bsc-test/jenkins-sccplite.sh</file></path><path><editType>edit</editType><file>ttcn3-ggsn-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-pcu-test/jenkins.sh</file></path><path><editType>edit</editType><file>nplab-sua-test/jenkins.sh</file></path><path><editType>edit</editType><file>osmo-gsm-tester/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-remsim-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-gbproxy-test-fr/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-gbproxy-test/jenkins.sh</file></path><path><editType>edit</editType><file>ttcn3-bts-test/jenkins.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>jenkins-common.sh</affectedPath><commitId>cf43f686ac942d97f572715e04a617bbbef4df29</commitId><timestamp>1614328359000</timestamp><author><absoluteUrl>https://jenkins.osmocom.org/jenkins/user/osmith</absoluteUrl><fullName>Oliver Smith</fullName></author><authorEmail>osmith@sysmocom.de</authorEmail><comment>jenkins-common: put fix_perms() in clean_up_common

Don't call fix_perms from collect_logs anymore, it looks like it was
only added there to avoid adding it at the end of each jenkins.sh. Now
that we have clean_up_common, put it there.

Related: OS#3208
Change-Id: I6e7e5b35198f420e130b1282eb948b96ccd6c8e0
</comment><date>2021-02-26 09:32:39 +0100</date><id>cf43f686ac942d97f572715e04a617bbbef4df29</id><msg>jenkins-common: put fix_perms() in clean_up_common</msg><path><editType>edit</editType><file>jenkins-common.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>osmo-ggsn-master/Dockerfile</affectedPath><commitId>fd6f09e0c2aaa2354a5c4be0ed4a332bbdd9aa5d</commitId><timestamp>1614328359000</timestamp><author><absoluteUrl>https://jenkins.osmocom.org/jenkins/user/osmith</absoluteUrl><fullName>Oliver Smith</fullName></author><authorEmail>osmith@sysmocom.de</authorEmail><comment>osmo-ggsn-master: add configure --enable-gtp-linux

Related: OS#3208
Change-Id: I8cf3de4775aa82bfdad1bf2c40aab3b50e910db3
</comment><date>2021-02-26 09:32:39 +0100</date><id>fd6f09e0c2aaa2354a5c4be0ed4a332bbdd9aa5d</id><msg>osmo-ggsn-master: add configure --enable-gtp-linux</msg><path><editType>edit</editType><file>osmo-ggsn-master/Dockerfile</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>.gitignore</affectedPath><affectedPath>scripts/kernel-test/run-qemu.sh</affectedPath><affectedPath>jenkins-common.sh</affectedPath><affectedPath>ttcn3-ggsn-test/jenkins.sh</affectedPath><affectedPath>scripts/kernel-test/kernel-build.sh</affectedPath><affectedPath>scripts/kernel-test/prepare.sh</affectedPath><affectedPath>README.md</affectedPath><affectedPath>scripts/kernel-test/initrd-init.sh</affectedPath><affectedPath>ttcn3-ggsn-test/initrd-ggsn.sh</affectedPath><affectedPath>ttcn3-ggsn-test/osmo-ggsn-kernel-gtp.cfg</affectedPath><affectedPath>scripts/kernel-test/qemu-ifdown.sh</affectedPath><affectedPath>ttcn3-ggsn-test/fragment.config</affectedPath><affectedPath>osmo-ggsn-latest/Dockerfile</affectedPath><affectedPath>scripts/kernel-test/initrd-build.sh</affectedPath><affectedPath>osmo-ggsn-master/Dockerfile</affectedPath><affectedPath>scripts/kernel-test/qemu-ifup.sh</affectedPath><commitId>79e48fd3ae1279eeaa3373d92d343f2dbfae075e</commitId><timestamp>1614328359000</timestamp><author><absoluteUrl>https://jenkins.osmocom.org/jenkins/user/osmith</absoluteUrl><fullName>Oliver Smith</fullName></author><authorEmail>osmith@sysmocom.de</authorEmail><comment>ttcn3-ggsn-test: add kernel test

Make it possible to run ttcn3-ggsn-test against osmo-ggsn with the GTP
kernel module. This feature is enabled by environment variables
explained in ttcn3-ggsn-test/jenkins.sh, and can either use the
pre-built kernel from Debian, or build a kernel from source.

The kernel runs inside QEMU inside the usual osmo-ggsn-master docker
image.

Thanks to Pau for providing the kernel config and kernel-test scripts
that this patch is based on! I ended up modifying them quite a bit to
fit the docker use case, and to build the initrd (so we can use the
stock debian kernel).

Related: OS#3208
Change-Id: I54e752048eed2a170a1cf4e0fd410de255b9de5d
</comment><date>2021-02-26 09:32:39 +0100</date><id>79e48fd3ae1279eeaa3373d92d343f2dbfae075e</id><msg>ttcn3-ggsn-test: add kernel test</msg><path><editType>add</editType><file>scripts/kernel-test/qemu-ifup.sh</file></path><path><editType>edit</editType><file>ttcn3-ggsn-test/jenkins.sh</file></path><path><editType>add</editType><file>scripts/kernel-test/initrd-build.sh</file></path><path><editType>edit</editType><file>osmo-ggsn-latest/Dockerfile</file></path><path><editType>add</editType><file>scripts/kernel-test/prepare.sh</file></path><path><editType>add</editType><file>scripts/kernel-test/run-qemu.sh</file></path><path><editType>add</editType><file>scripts/kernel-test/qemu-ifdown.sh</file></path><path><editType>add</editType><file>ttcn3-ggsn-test/fragment.config</file></path><path><editType>edit</editType><file>osmo-ggsn-master/Dockerfile</file></path><path><editType>add</editType><file>ttcn3-ggsn-test/initrd-ggsn.sh</file></path><path><editType>add</editType><file>ttcn3-ggsn-test/osmo-ggsn-kernel-gtp.cfg</file></path><path><editType>add</editType><file>scripts/kernel-test/kernel-build.sh</file></path><path><editType>edit</editType><file>jenkins-common.sh</file></path><path><editType>edit</editType><file>.gitignore</file></path><path><editType>add</editType><file>scripts/kernel-test/initrd-init.sh</file></path><path><editType>edit</editType><file>README.md</file></path></item><kind>git</kind></changeSet><culprit><absoluteUrl>https://jenkins.osmocom.org/jenkins/user/osmith</absoluteUrl><fullName>Oliver Smith</fullName></culprit></freeStyleBuild>