[ARVADOS-DEV] created: f3c5790ed37792484ca131104774a443c1215075

Git user git at public.curoverse.com
Mon Aug 15 15:45:11 EDT 2016


        at  f3c5790ed37792484ca131104774a443c1215075 (commit)


commit f3c5790ed37792484ca131104774a443c1215075
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon Aug 15 14:30:35 2016 -0400

    9784: Update scopes to the ones actually in use by CI.

diff --git a/jenkins/run-deploy.sh b/jenkins/run-deploy.sh
index 4dd10e1..cfb6cf0 100755
--- a/jenkins/run-deploy.sh
+++ b/jenkins/run-deploy.sh
@@ -3,6 +3,29 @@
 DEBUG=0
 SSH_PORT=22
 
+read -d] -r SCOPES <<EOF
+--scopes
+'["GET /arvados/v1/virtual_machines",\n
+"GET /arvados/v1/keep_services",\n
+"GET /arvados/v1/keep_services/",\n
+"GET /arvados/v1/groups",\n
+"GET /arvados/v1/groups/",\n
+"GET /arvados/v1/links",\n
+"GET /arvados/v1/collections",\n
+"POST /arvados/v1/collections",\n
+"POST /arvados/v1/links",\n
+"GET /arvados/v1/users/current",\n
+"POST /arvados/v1/users/current",\n
+"GET /arvados/v1/jobs",\n
+"POST /arvados/v1/jobs",\n
+"GET /arvados/v1/pipeline_instances",\n
+"POST /arvados/v1/pipeline_instances",\n
+"PUT /arvados/v1/pipeline_instances/",\n
+"GET /arvados/v1/collections/",\n
+"POST /arvados/v1/collections/",\n
+"GET /arvados/v1/logs"]'
+EOF
+
 function usage {
     echo >&2
     echo >&2 "usage: $0 [options] <identifier>"
@@ -16,18 +39,11 @@ function usage {
     echo >&2
     echo >&2 "Note: this script requires an arvados token created with these permissions:"
     echo >&2 '  arv api_client_authorization create_system_auth \'
-    echo >&2 '    --scopes "[\"GET /arvados/v1/virtual_machines\",'
-    echo >&2 '               \"GET /arvados/v1/keep_services\",'
-    echo >&2 '               \"GET /arvados/v1/keep_services/\",'
-    echo >&2 '               \"GET /arvados/v1/groups\",'
-    echo >&2 '               \"GET /arvados/v1/groups/\",'
-    echo >&2 '               \"GET /arvados/v1/links\",'
-    echo >&2 '               \"GET /arvados/v1/collections\",'
-    echo >&2 '               \"POST /arvados/v1/collections\",'
-    echo >&2 '               \"POST /arvados/v1/links\"]"'
+    echo -e $SCOPES"]'" >&2
     echo >&2
 }
 
+
 # NOTE: This requires GNU getopt (part of the util-linux package on Debian-based distros).
 TEMP=`getopt -o hdp: \
     --long help,debug,port: \

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list