[med-svn] [Git][med-team/community/helper-scripts][master] Do not continue if Salsa did not returned any group ID

Andreas Tille gitlab at salsa.debian.org
Wed Aug 29 13:06:02 BST 2018


Andreas Tille pushed to branch master at Debian Med / community / helper-scripts


Commits:
bfbdae02 by Andreas Tille at 2018-08-29T12:05:38Z
Do not continue if Salsa did not returned any group ID

- - - - -


1 changed file:

- inject-into-salsa-git


Changes:

=====================================
inject-into-salsa-git
=====================================
@@ -21,6 +21,11 @@ SALSA_GROUP=`echo $VCSGIT | sed -e 's#.*://salsa.debian.org/\([^/]\+\)/.*#\1#'`
 
 SALSA_GROUP_ID=$(curl -s -f -XGET --header "PRIVATE-TOKEN: $SALSA_TOKEN" "$SALSA_URL/groups/$SALSA_GROUP" | jq '.id')
 
+if [ "$SALSA_GROUP_ID" = "" ] ; then
+    echo "Failed to find group ID for $SALSA_GROUP"
+    exit 1
+fi
+
 set -x
 curl "$SALSA_URL/projects?private_token=$SALSA_TOKEN" \
      --data "path=${DEBPKGNAME}&namespace_id=${SALSA_GROUP_ID}&description=${SHORTDESC}&visibility=public"



View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/bfbdae02f3c2d0005ffde8ed27dc8a862caf5f59

-- 
View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/bfbdae02f3c2d0005ffde8ed27dc8a862caf5f59
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180829/d5ee0390/attachment.html>


More information about the debian-med-commit mailing list