osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/14650


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

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
---
M scripts/common.sh
M scripts/osmocom-list-commits.sh
2 files changed, 26 insertions(+), 23 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/50/14650/1

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 @@
 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")"

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/14650
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I954b1d5229c44ebcec7e7228f2565a5c6755d16c
Gerrit-Change-Number: 14650
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-MessageType: newchange

Reply via email to