laforge submitted this change.
gerrit_binpkgs: display hint for OBS build status
Binary packages may fail to build if dependency binary packages are not
build yet. Display the link where the status of those packages can be
seen.
Suggested-by: Pau Espin Pedrol <pespin@sysmocom.de>
Change-Id: I6a2d7c27f6cd8f0e688aefacc819d3760f21e02e
---
M scripts/obs/gerrit_binpkgs.sh
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/scripts/obs/gerrit_binpkgs.sh b/scripts/obs/gerrit_binpkgs.sh
index 4e3b0f3..443c33f 100755
--- a/scripts/obs/gerrit_binpkgs.sh
+++ b/scripts/obs/gerrit_binpkgs.sh
@@ -1,7 +1,16 @@
#!/bin/sh -e
SCRIPTS_OBS_DIR="$(realpath "$(dirname "$0")")"
-
DISTRO="$1"
+
+error_exit() {
+ echo "---"
+ echo "NOTE: if the build failed because dependencies are outdated, see the status here:"
+ echo "https://obs.osmocom.org/project/show/osmocom:master"
+ echo "---"
+ exit 1
+}
+
+
if [ -z "$DISTRO" ]; then
echo "usage: gerrit-binpkgs.sh DISTRO"
echo "examples:"
@@ -33,11 +42,11 @@
--git-skip-fetch \
--git-skip-checkout \
--no-meta \
- "$PROJECT_NAME"
+ "$PROJECT_NAME" || error_exit
echo ":: Building the binary packages"
"$SCRIPTS_OBS_DIR"/build_binpkg.py \
--docker "$DISTRO" \
- "$PROJECT_NAME"
+ "$PROJECT_NAME" || error_exit
echo ":: Find binary packages in: $SCRIPTS_OBS_DIR/_temp/binpkgs"
To view, visit change 38699. To unsubscribe, or for help writing mail filters, visit settings.