Change in osmo-ci[master]: nightly-packages: Build latest tag of limesuite

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Sun Apr 14 22:01:17 UTC 2019


Pau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/13605 )

Change subject: nightly-packages: Build latest tag of limesuite
......................................................................

nightly-packages: Build latest tag of limesuite

Like we actually do already on latest-packages.

Change-Id: I5a9e97a7a93c1d2a9983926cd0f5d7255e9666bd
---
M scripts/osmocom-nightly-packages.sh
1 file changed, 13 insertions(+), 3 deletions(-)

Approvals:
  Pau Espin Pedrol: Verified
  Harald Welte: Looks good to me, approved



diff --git a/scripts/osmocom-nightly-packages.sh b/scripts/osmocom-nightly-packages.sh
index e9cc778..9afed1e 100755
--- a/scripts/osmocom-nightly-packages.sh
+++ b/scripts/osmocom-nightly-packages.sh
@@ -25,6 +25,17 @@
   osc co "$PROJ"
 }
 
+get_last_tag() {
+  project="$1"
+  if [ "$project" = "limesuite" ]; then
+    ver_regexp="^v[0-9]*.[0-9]*.[0-9]*$"
+  else
+    ver_regexp="^[0-9]*.[0-9]*.[0-9]*$"
+  fi
+  VER=$(git -C "${REPO}/${project}" tag -l --sort=v:refname | grep "$ver_regexp" | tail -n 1)
+  echo "${VER}"
+}
+
 get_commit_version() {
   # return a version based on the commit
   local version
@@ -130,10 +141,9 @@
 }
 
 checkout_limesuite() {
-  TAG="v18.10.0"
-
   cd "$REPO"
   git clone https://github.com/myriadrf/LimeSuite limesuite
+  TAG="$(get_last_tag limesuite)"
   cd limesuite
   git checkout "$TAG"
 }
@@ -192,7 +202,7 @@
 
   create_osmo_trx_debian8_jessie
 
-  build limesuite no_commit --git-upstream-tree=v18.10.0
+  build limesuite no_commit --git-upstream-tree="$(get_last_tag limesuite)"
   build libosmocore
   build libosmo-sccp
   build libosmo-abis

-- 
To view, visit https://gerrit.osmocom.org/13605
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I5a9e97a7a93c1d2a9983926cd0f5d7255e9666bd
Gerrit-Change-Number: 13605
Gerrit-PatchSet: 2
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190414/ac795484/attachment.htm>


More information about the gerrit-log mailing list