diff options
author | Oliver Smith <osmith@sysmocom.de> | 2019-07-01 10:40:47 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2019-07-02 10:24:57 +0200 |
commit | 0aa0ba0c55a0a882f38c908ed01fc26568a1fa1d (patch) | |
tree | 837aab6337010235b94f56a01890e117da789a59 | |
parent | a5d5bedd55f0d1f9411a9c3e24d59fb9f607e93a (diff) |
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
-rw-r--r-- | scripts/common.sh | 25 | ||||
-rwxr-xr-x | scripts/osmocom-list-commits.sh | 24 |
2 files changed, 26 insertions, 23 deletions
diff --git a/scripts/common.sh b/scripts/common.sh index 30ab53f..2cf31a5 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -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 diff --git a/scripts/osmocom-list-commits.sh b/scripts/osmocom-list-commits.sh index e0d3eb0..b584195 100755 --- a/scripts/osmocom-list-commits.sh +++ b/scripts/osmocom-list-commits.sh @@ -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")" |