projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18870: Change deploy target directory name
[arvados.git]
/
build
/
run-build-packages-all-targets.sh
diff --git
a/build/run-build-packages-all-targets.sh
b/build/run-build-packages-all-targets.sh
index a4dd9a6ab8642e1e12b4a24e10ce3dd0d8c9b993..85c498ecd5e55f98b079af1477852e967ebc851e 100755
(executable)
--- a/
build/run-build-packages-all-targets.sh
+++ b/
build/run-build-packages-all-targets.sh
@@
-1,4
+1,7
@@
#!/bin/bash
#!/bin/bash
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
read -rd "\000" helpmessage <<EOF
$(basename $0): Orchestrate run-build-packages.sh for every target
read -rd "\000" helpmessage <<EOF
$(basename $0): Orchestrate run-build-packages.sh for every target
@@
-14,6
+17,10
@@
Options:
Run package install tests
--debug
Output debug information (default: false)
Run package install tests
--debug
Output debug information (default: false)
+--build-version <string>
+ Version to build (default:
+ \$ARVADOS_BUILDING_VERSION-\$ARVADOS_BUILDING_ITERATION or
+ 0.1.timestamp.commithash)
WORKSPACE=path Path to the Arvados source tree to build packages from
WORKSPACE=path Path to the Arvados source tree to build packages from
@@
-38,7
+45,7
@@
fi
set -e
PARSEDOPTS=$(getopt --name "$0" --longoptions \
set -e
PARSEDOPTS=$(getopt --name "$0" --longoptions \
- help,test-packages,debug,command:,only-test: \
+ help,test-packages,debug,command:,only-test:
,build-version:
\
-- "" "$@")
if [ $? -ne 0 ]; then
exit 1
-- "" "$@")
if [ $? -ne 0 ]; then
exit 1
@@
-69,6
+76,9
@@
while [ $# -gt 0 ]; do
--only-test)
ONLY_TEST="$1 $2"; shift
;;
--only-test)
ONLY_TEST="$1 $2"; shift
;;
+ --build-version)
+ ARVADOS_BUILDING_VERSION="$2"; shift
+ ;;
--)
if [ $# -gt 1 ]; then
echo >&2 "$0: unrecognized argument '$2'. Try: $0 --help"
--)
if [ $# -gt 1 ]; then
echo >&2 "$0: unrecognized argument '$2'. Try: $0 --help"
@@
-84,15
+94,20
@@
cd $(dirname $0)
FINAL_EXITCODE=0
for dockerfile_path in $(find -name Dockerfile | grep package-build-dockerfiles); do
FINAL_EXITCODE=0
for dockerfile_path in $(find -name Dockerfile | grep package-build-dockerfiles); do
- if ./run-build-packages-one-target.sh --target "$(basename $(dirname "$dockerfile_path"))" --command "$COMMAND" $DEBUG $TEST_PACKAGES $ONLY_TEST ; then
+ if ./run-build-packages-one-target.sh --target "$(basename $(dirname "$dockerfile_path"))" --command "$COMMAND"
--build-version "$ARVADOS_BUILDING_VERSION"
$DEBUG $TEST_PACKAGES $ONLY_TEST ; then
true
else
FINAL_EXITCODE=$?
true
else
FINAL_EXITCODE=$?
+ echo
+ echo "Build packages failed for $(basename $(dirname "$dockerfile_path"))"
+ echo
fi
done
if test $FINAL_EXITCODE != 0 ; then
fi
done
if test $FINAL_EXITCODE != 0 ; then
+ echo
echo "Build packages failed with code $FINAL_EXITCODE" >&2
echo "Build packages failed with code $FINAL_EXITCODE" >&2
+ echo
fi
exit $FINAL_EXITCODE
fi
exit $FINAL_EXITCODE