Make sure to run the arvados-api-server-upgrade.sh and
[arvados-dev.git] / jenkins / run-build-packages-all-targets.sh
index 3ddb4ba76c187995ee373f366b42f337c009ce31..8c889a0f379a4ea4c90acf7143457c9a581b3d2f 100755 (executable)
@@ -6,10 +6,14 @@ $(basename $0): Orchestrate run-build-packages.sh for every target
 Syntax:
         WORKSPACE=/path/to/arvados $(basename $0) [options]
 
-WORKSPACE=path         Path to the Arvados source tree to build packages from
+Options:
 
 --command
     Build command to execute (default: use built-in Docker image command)
+--debug
+    Output debug information (default: false)
+
+WORKSPACE=path         Path to the Arvados source tree to build packages from
 
 EOF
 
@@ -32,13 +36,14 @@ fi
 set -e
 
 PARSEDOPTS=$(getopt --name "$0" --longoptions \
-    help,command: \
+    help,debug,command: \
     -- "" "$@")
 if [ $? -ne 0 ]; then
     exit 1
 fi
 
 COMMAND=
+DEBUG=
 
 eval set -- "$PARSEDOPTS"
 while [ $# -gt 0 ]; do
@@ -48,6 +53,9 @@ while [ $# -gt 0 ]; do
             echo >&2
             exit 1
             ;;
+        --debug)
+            DEBUG=" --debug"
+            ;;
         --command)
             COMMAND="$2"; shift
             ;;
@@ -62,7 +70,7 @@ while [ $# -gt 0 ]; do
 done
 
 if [[ "$COMMAND" != "" ]]; then
-  COMMAND="/usr/local/rvm/bin/rvm-exec default bash /jenkins/$COMMAND"
+  COMMAND="/usr/local/rvm/bin/rvm-exec default bash /jenkins/$COMMAND$DEBUG"
 fi
 
 FINAL_EXITCODE=0