--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
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
echo >&2
exit 1
;;
+ --debug)
+ DEBUG=" --debug"
+ ;;
--command)
COMMAND="$2"; shift
;;
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
Distribution to build packages for (default: debian7)
--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
fi
PARSEDOPTS=$(getopt --name "$0" --longoptions \
- help,target:,command: \
+ help,debug,target:,command: \
-- "" "$@")
if [ $? -ne 0 ]; then
exit 1
TARGET=debian7
COMMAND=
+DEBUG=
eval set -- "$PARSEDOPTS"
while [ $# -gt 0 ]; do
--target)
TARGET="$2"; shift
;;
+ --debug)
+ DEBUG=" --debug"
+ ;;
--command)
COMMAND="$2"; shift
;;
set -e
if [[ "$COMMAND" != "" ]]; then
- COMMAND="/usr/local/rvm/bin/rvm-exec default bash /jenkins/$COMMAND --target $TARGET"
+ COMMAND="/usr/local/rvm/bin/rvm-exec default bash /jenkins/$COMMAND --target $TARGET$DEBUG"
fi
FINAL_EXITCODE=0