mirror of https://gerrit.osmocom.org/osmo-ci
jobs/master,gerrit: use minimal image for arm
Building debian-buster-jenkins on the raspberry pis may take > 1h, depending on what changed. It has a lot of things we don't use, so build and use a minimal image with the rpis instead. Closes: OS#5863 Depends: docker-playground I4fb4b48b233acaef815c4c27ec6f17f12cfe836b Change-Id: I73e62fbbf93824c0d37963039de4e00f26a43cbechanges/45/31045/4
parent
989c47bc91
commit
c914967c53
|
@ -149,10 +149,14 @@
|
|||
(FIRMWARE_VERSION == "oc2g-next" && BTS_MODEL == "oc2g" && WITH_MANUALS == "0" && label == "osmocom-gerrit")
|
||||
concurrent: false
|
||||
cmd: |
|
||||
DOCKER_IMG="{docker_img}"
|
||||
case "$(arch)" in
|
||||
arm*) DOCKER_IMG="$DOCKER_IMG-arm" ;;
|
||||
esac
|
||||
{docker_run} \
|
||||
-e FIRMWARE_VERSION="$FIRMWARE_VERSION" \
|
||||
-e WITH_MANUALS="$WITH_MANUALS" \
|
||||
{docker_img} {timeout_cmd} /build/contrib/jenkins_bts_model.sh "$BTS_MODEL"
|
||||
"$DOCKER_IMG" {timeout_cmd} /build/contrib/jenkins_bts_model.sh "$BTS_MODEL"
|
||||
|
||||
- osmo_dia2gsup:
|
||||
repos_url: '{gerrit_url}/erlang/{repos}'
|
||||
|
@ -241,12 +245,16 @@
|
|||
(with_vty == "False" && with_dsp == "none" && FIRMWARE_VERSION=="master" && WITH_MANUALS == "1" && label == "osmocom-gerrit") ||
|
||||
(with_vty == "False" && with_dsp == "none" && FIRMWARE_VERSION=="master" && WITH_MANUALS == "0" && label == "rpi4-raspbian11")
|
||||
cmd: |
|
||||
DOCKER_IMG="{docker_img}"
|
||||
case "$(arch)" in
|
||||
arm*) DOCKER_IMG="$DOCKER_IMG-arm" ;;
|
||||
esac
|
||||
{docker_run} \
|
||||
-e FIRMWARE_VERSION="$FIRMWARE_VERSION" \
|
||||
-e with_vty="$with_vty" \
|
||||
-e with_dsp="$with_dsp" \
|
||||
-e WITH_MANUALS="$WITH_MANUALS" \
|
||||
{docker_img} {timeout_cmd} /build/contrib/jenkins.sh
|
||||
"$DOCKER_IMG" {timeout_cmd} /build/contrib/jenkins.sh
|
||||
|
||||
- osmo-python-tests:
|
||||
repos_url: '{gerrit_url}/python/{repos}'
|
||||
|
@ -286,10 +294,14 @@
|
|||
(INSTR == "--with-neon" && WITH_MANUALS == "0" && label == "rpi4-raspbian11") ||
|
||||
(INSTR == "--with-neon-vfpv4" && WITH_MANUALS == "0" && label == "rpi4-raspbian11")
|
||||
cmd: |
|
||||
DOCKER_IMG="{docker_img}"
|
||||
case "$(arch)" in
|
||||
arm*) DOCKER_IMG="$DOCKER_IMG-arm" ;;
|
||||
esac
|
||||
{docker_run} \
|
||||
-e INSTR="$INSTR" \
|
||||
-e WITH_MANUALS="$WITH_MANUALS" \
|
||||
{docker_img} {timeout_cmd} /build/contrib/jenkins.sh
|
||||
"$DOCKER_IMG" {timeout_cmd} /build/contrib/jenkins.sh
|
||||
|
||||
- osmocom-bb:
|
||||
pipeline_binpkgs: false
|
||||
|
|
|
@ -232,10 +232,14 @@
|
|||
(FIRMWARE_VERSION == "origin/nrw/oc2g" && BTS_MODEL == "oc2g" && WITH_MANUALS == "0" && label == "osmocom-master")
|
||||
concurrent: false
|
||||
cmd: |
|
||||
DOCKER_IMG="{docker_img}"
|
||||
case "$(arch)" in
|
||||
arm*) DOCKER_IMG="$DOCKER_IMG-arm" ;;
|
||||
esac
|
||||
{docker_run} \
|
||||
-e FIRMWARE_VERSION="$FIRMWARE_VERSION" \
|
||||
-e WITH_MANUALS="$WITH_MANUALS" \
|
||||
{docker_img} {timeout_cmd} /build/contrib/jenkins_bts_model.sh "$BTS_MODEL"
|
||||
"$DOCKER_IMG" {timeout_cmd} /build/contrib/jenkins_bts_model.sh "$BTS_MODEL"
|
||||
|
||||
- osmo-e1-hardware:
|
||||
a2_name: JOB_TYPE
|
||||
|
@ -349,12 +353,16 @@
|
|||
(with_vty == "False" && with_dsp == "none" && FIRMWARE_VERSION=="master" && WITH_MANUALS == "1" && label == "osmocom-master") ||
|
||||
(with_vty == "False" && with_dsp == "none" && FIRMWARE_VERSION=="master" && WITH_MANUALS == "0" && label == "rpi4-raspbian11")
|
||||
cmd: |
|
||||
DOCKER_IMG="{docker_img}"
|
||||
case "$(arch)" in
|
||||
arm*) DOCKER_IMG="$DOCKER_IMG-arm" ;;
|
||||
esac
|
||||
{docker_run} \
|
||||
-e FIRMWARE_VERSION="$FIRMWARE_VERSION" \
|
||||
-e with_vty="$with_vty" \
|
||||
-e with_dsp="$with_dsp" \
|
||||
-e WITH_MANUALS="$WITH_MANUALS" \
|
||||
{docker_img} {timeout_cmd} /build/contrib/jenkins.sh
|
||||
"$DOCKER_IMG" {timeout_cmd} /build/contrib/jenkins.sh
|
||||
|
||||
- osmo-sgsn:
|
||||
a1_name: IU
|
||||
|
@ -388,10 +396,14 @@
|
|||
(INSTR == "--with-neon" && WITH_MANUALS == "0" && label == "rpi4-raspbian11") ||
|
||||
(INSTR == "--with-neon-vfpv4" && WITH_MANUALS == "0" && label == "rpi4-raspbian11")
|
||||
cmd: |
|
||||
DOCKER_IMG="{docker_img}"
|
||||
case "$(arch)" in
|
||||
arm*) DOCKER_IMG="$DOCKER_IMG-arm" ;;
|
||||
esac
|
||||
{docker_run} \
|
||||
-e INSTR="$INSTR" \
|
||||
-e WITH_MANUALS="$WITH_MANUALS" \
|
||||
{docker_img} {timeout_cmd} /build/contrib/jenkins.sh
|
||||
"$DOCKER_IMG" {timeout_cmd} /build/contrib/jenkins.sh
|
||||
|
||||
- osmocom-bb
|
||||
- osmo-sysmon
|
||||
|
|
|
@ -2,11 +2,16 @@
|
|||
set -e -x
|
||||
cd "$(dirname "$0")/.."
|
||||
. scripts/common.sh
|
||||
docker_images_require \
|
||||
"debian-buster-jenkins"
|
||||
|
||||
if [ "$(arch)" = "x86_64" ]; then
|
||||
case "$(arch)" in
|
||||
x86_64)
|
||||
docker_images_require \
|
||||
"debian-bullseye-erlang" \
|
||||
"debian-bullseye-jenkins"
|
||||
fi
|
||||
"debian-bullseye-jenkins" \
|
||||
"debian-buster-jenkins"
|
||||
;;
|
||||
arm*)
|
||||
docker_images_require \
|
||||
"debian-buster-jenkins-arm"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue