aboutsummaryrefslogtreecommitdiffstats
path: root/jenkins-common.sh
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-12-10 11:39:28 +0100
committerlaforge <laforge@osmocom.org>2021-12-11 15:16:54 +0000
commitdb275974b8a3a119ab5576ce6306202a4c8c59f6 (patch)
treef34d824ccd6a12e2b24637b24105ebb42d2bf8df /jenkins-common.sh
parent39ae7ed2f3de4c0a43a8621db14b5356425bbb75 (diff)
Add centos7 containers
Diffstat (limited to 'jenkins-common.sh')
-rw-r--r--jenkins-common.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/jenkins-common.sh b/jenkins-common.sh
index 3511c02..9373076 100644
--- a/jenkins-common.sh
+++ b/jenkins-common.sh
@@ -15,7 +15,9 @@ docker_depends() {
feed="$(echo "$feed" | sed 's/\-centos8$//')" # e.g. "2021q1"
echo "centos8-obs-$feed"
;;
+ osmo-*-latest-centos7) echo "centos7-obs-latest" ;;
osmo-*-latest-centos8) echo "centos8-obs-latest" ;;
+ osmo-*-centos7) echo "centos7-build" ;;
osmo-*-centos8) echo "centos8-build" ;;
osmo-*-latest) echo "debian-stretch-obs-latest" ;;
osmo-*) echo "debian-stretch-build" ;;
@@ -25,7 +27,9 @@ docker_depends() {
docker_distro_from_image_name() {
case "$1" in
+ osmo-*-centos7) echo "centos7" ;;
osmo-*-centos8) echo "centos8" ;;
+ centos7-*) echo "centos7" ;;
centos8-*) echo "centos8" ;;
*) echo "debian-stretch" ;;
esac
@@ -33,7 +37,9 @@ docker_distro_from_image_name() {
docker_upstream_distro_from_image_name() {
case "$1" in
+ osmo-*-centos7) echo "centos:centos7"; ;;
osmo-*-centos8) echo "centos:centos8"; ;;
+ centos7-*) echo "centos:centos7" ;;
centos8-*) echo "centos:centos8" ;;
debian10-*) echo "debian:buster" ;;
*) echo "debian:stretch" ;;
@@ -46,6 +52,10 @@ docker_dir_from_image_name() {
# e.g. osmo-mgw-2021q1-centos8 -> osmo-mgw-latest
echo "$1" | sed 's/20[0-9][0-9]q.*\-centos8$/latest/'
;;
+ osmo-*-centos7)
+ # e.g. osmo-mgw-latest-centos7 -> osmo-mgw-latest
+ echo "$1" | sed 's/\-centos7$//'
+ ;;
osmo-*-centos8)
# e.g. osmo-mgw-latest-centos8 -> osmo-mgw-latest
echo "$1" | sed 's/\-centos8$//'