jenkins: build from new osmo-{msc,bsc,mgw,sgsn} repositories

The idea is to build each binary separately: even though osmo-msc requires
libosmo-sccp, which already includes the osmo-stp binary, we still want
osmo-stp to be built from a separate script. The reason: to track down
regressions, we can change the versions each binary is built from separately.
The additional build effort and jenkins script multitude is acceptable.

Change-Id: I194ad5169dbe013c8e1cf9d631033cb2576744dd
This commit is contained in:
Neels Hofmeyr 2017-09-04 16:49:17 +02:00
parent 713a1201d2
commit 36e0404f45
9 changed files with 67 additions and 12 deletions

View File

@ -0,0 +1,14 @@
#!/bin/sh
set -e -x
base="$PWD"
name="osmo-bsc"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --disable-doxygen
build_repo libosmo-abis
build_repo libosmo-netif --disable-doxygen
build_repo libosmo-sccp
build_repo osmo-mgw
build_repo osmo-bsc
create_bin_tgz osmo-bsc

View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e -x
base="$PWD"
name="osmo-ggsn"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --disable-doxygen
build_repo osmo-ggsn
create_bin_tgz osmo-ggsn

View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e -x
base="$PWD"
name="osmo-mgw"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --disable-doxygen
build_repo libosmo-abis
build_repo libosmo-netif --disable-doxygen
build_repo osmo-mgw
create_bin_tgz osmo-bsc_mgcp

View File

@ -7,11 +7,9 @@ name="osmo-msc"
build_repo libosmocore --disable-doxygen
build_repo libosmo-abis
build_repo libosmo-netif --disable-doxygen
build_repo openggsn
build_repo libsmpp34
build_repo libosmo-sccp
build_repo libasn1c
build_repo osmo-iuh neels/sigtran # TEMPORARY BRANCH
build_repo openbsc aoip --enable-smpp --enable-osmo-bsc --enable-nat --enable-iu
build_repo osmo-mgw
build_repo osmo-msc --enable-smpp --disable-iu
create_bin_tgz osmo-msc

View File

@ -0,0 +1,14 @@
#!/bin/sh
set -e -x
base="$PWD"
name="osmo-sgsn"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --disable-doxygen
build_repo libosmo-abis
build_repo libosmo-netif --disable-doxygen
build_repo libosmo-sccp
build_repo openggsn
build_repo osmo-sgsn --disable-iu
create_bin_tgz osmo-sgsn

View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e -x
base="$PWD"
name="osmo-stp"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --disable-doxygen
build_repo libosmo-abis
build_repo libosmo-netif --disable-doxygen
build_repo libosmo-sccp
create_bin_tgz osmo-stp

View File

@ -43,10 +43,7 @@ class OsmoBsc(log.Origin):
self.run_dir = util.Dir(self.suite_run.get_test_run_dir().new_dir(self.name()))
self.configure()
# NOTE: While OsmoMSC and OsmoBSC live in the same git repository, the
# osmo-msc build will also provide the OsmoBSC binary. As soon as the
# repositories are separate, there shall be a separate artifact.
inst = util.Dir(os.path.abspath(self.suite_run.trial.get_inst('osmo-msc')))
inst = util.Dir(os.path.abspath(self.suite_run.trial.get_inst('osmo-bsc')))
binary = inst.child('bin', 'osmo-bsc')
if not os.path.isfile(binary):

View File

@ -40,7 +40,7 @@ class OsmoMgcpgw(log.Origin):
self.log('Starting osmo-mgcpgw')
self.run_dir = util.Dir(self.suite_run.get_test_run_dir().new_dir(self.name()))
self.configure()
inst = util.Dir(os.path.abspath(self.suite_run.trial.get_inst('osmo-msc')))
inst = util.Dir(os.path.abspath(self.suite_run.trial.get_inst('osmo-mgw')))
binary = inst.child('bin', 'osmo-bsc_mgcp')
if not os.path.isfile(binary):
raise RuntimeError('Binary missing: %r' % binary)

View File

@ -39,9 +39,7 @@ class OsmoStp(log.Origin):
self.run_dir = util.Dir(self.suite_run.get_test_run_dir().new_dir(self.name()))
self.configure()
# NOTE: libosmo-sccp provides osmo-stp and is built as a dependency of
# OsmoMSC.
inst = util.Dir(os.path.abspath(self.suite_run.trial.get_inst('osmo-msc')))
inst = util.Dir(os.path.abspath(self.suite_run.trial.get_inst('osmo-stp')))
binary = inst.child('bin', 'osmo-stp')
if not os.path.isfile(binary):