osmocom-list-commits: move repo list to common.sh

Prepare for new script, which will use the same list of repositories.

Related: OS#3870
Change-Id: I954b1d5229c44ebcec7e7228f2565a5c6755d16c
This commit is contained in:
Oliver Smith 2019-07-01 10:40:47 +02:00
parent a5d5bedd55
commit 0aa0ba0c55
2 changed files with 26 additions and 23 deletions

View File

@ -2,6 +2,31 @@
# Various functions and variables used in multiple osmo-ci shell scripts
OSMO_GIT_URL="https://git.osmocom.org"
# Osmocom repositories of which we want to build release tarballs automatically, and list the current versions at
# https://jenkins.osmocom.org/jenkins/job/Osmocom-list-commits/lastSuccessfulBuild/artifact/commits.txt
OSMO_RELEASE_REPOS="
libasn1c
libosmo-abis
libosmocore
libosmo-netif
libosmo-sccp
libsmpp34
libusrp
osmo-bsc
osmo-bts
osmo-ggsn
osmo-hlr
osmo-iuh
osmo-mgw
osmo-msc
osmo-pcu
osmo-sgsn
osmo-sip-connector
osmo-sysmon
osmo-trx
osmocom-bb
"
# Print commit of HEAD for an Osmocom git repository, e.g.:
# "f90496f577e78944ce8db1aa5b900477c1e479b0"
# $1: repository

View File

@ -4,28 +4,6 @@
. "$(dirname "$0")/common.sh"
FORMAT_STR="%-22s %-42s %9s %-40s %s\n"
REPOS="
libasn1c
libosmo-abis
libosmocore
libosmo-netif
libosmo-sccp
libsmpp34
libusrp
osmo-bsc
osmo-bts
osmo-ggsn
osmo-hlr
osmo-iuh
osmo-mgw
osmo-msc
osmo-pcu
osmo-sgsn
osmo-sip-connector
osmo-sysmon
osmo-trx
osmocom-bb
"
# Header
if [ -z "$NO_HEADER" ]; then
@ -33,7 +11,7 @@ if [ -z "$NO_HEADER" ]; then
fi
# Table
for repo in $REPOS; do
for repo in $OSMO_RELEASE_REPOS; do
last_tag="$(osmo_git_last_tags "$repo" 1 "-")"
last_commit="$(osmo_git_last_commits "$repo" 1 "-")"
head_commit="$(osmo_git_head_commit "$repo")"