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.
_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to