From b712491a56a544707c720eaae50e961064f6945b Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 15 Feb 2022 14:30:24 +0100 Subject: jobs/gerrit-verifications: build ttcn3 in docker Build the testsuites in the same docker container during gerrit verification, as it will be the case when building and running the testsuites in the various ttcn3-* jenkins jobs. This avoids the need to install eclipse-titan and libfftranscode on the jenkins nodes. Related: OS#5452 Change-Id: I6a667255bb55a945b4c6279d711142aa252c6996 --- jobs/gerrit-verifications.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/jobs/gerrit-verifications.yml b/jobs/gerrit-verifications.yml index 32c3e3b..f7a6312 100644 --- a/jobs/gerrit-verifications.yml +++ b/jobs/gerrit-verifications.yml @@ -261,12 +261,20 @@ cmd: '{timeout_cmd} ./contrib/jenkins.sh' - osmo-ttcn3-hacks: - repos_url: 'https://gerrit.osmocom.org/{repos}' slave_axis: !!python/tuple [ttcn3] - concurrent: false cmd: | - set -e - make deps; make clean; make compile + docker run \ + --rm \ + -v "$PWD:/build" \ + "registry.osmocom.org/osmocom-build/debian-bullseye-titan" \ + {timeout_cmd} \ + sh -e -x -c " + useradd --uid=1000 build; + cd /build; + su build -c 'make deps'; + su build -c 'make clean'; + su build -c 'make compile'; + " jobs: - 'gerrit-{repos}' -- cgit v1.2.3