Call gh release list to verify basic api acces
Change-Id: I3d0628ef4e640f6b288298501d73f3ee24c87d67
diff --git a/jjb/shell/github-release.sh b/jjb/shell/github-release.sh
index da2bada..7397d1e 100755
--- a/jjb/shell/github-release.sh
+++ b/jjb/shell/github-release.sh
@@ -177,6 +177,34 @@
## -----------------------------------------------------------------------
## Intent:
## -----------------------------------------------------------------------
+function github_release_list()
+{
+ local what="$1" ; shift
+ local user="$1" ; shift
+ local repo="$1" ; shift
+
+ local iam="${FUNCNAME[0]}"
+ echo "** ${iam}: ENTER"
+
+ declare -a cmd=()
+
+ cmd+=("$gh_cmd")
+ cmd+=('--verbose')
+ cmd+=('--limit' '10')
+ cmd+=('release' 'list')
+ cmd+=('--repo' "opencord/$repo")
+
+ # gh release create [<tag>] [<files>...]
+ echo "** ${iam}: RUNNING " "${cmd[@]}"
+ "${cmd[@]}"
+
+ echo "** ${iam}: ENTER"
+ return
+}
+
+## -----------------------------------------------------------------------
+## Intent:
+## -----------------------------------------------------------------------
function github_release_pre()
{
local what="$1" ; shift
@@ -376,7 +404,13 @@
# git auth login
# git auth logout
-
+
+ gh release list [flags]
+ echo "** ${iam} List releases"
+ github_release_list \
+ "$GITHUB_ORGANIZATION"\
+ "$GERRIT_PROJECT"
+
# Usage: github-release [global options] <verb> [verb options]
# create release
echo "** ${iam} Creating Release: $GERRIT_PROJECT - $GIT_VERSION"