3 # Copyright (C) The Arvados Authors. All rights reserved.
5 # SPDX-License-Identifier: AGPL-3.0 OR Apache-2.0
10 git log -n1 --format=%H .
14 # Output the version being built, or if we're building a
15 # dev/prerelease, output a version number based on the git log for
16 # the current working directory.
17 if [[ -n "$ARVADOS_BUILDING_VERSION" ]]; then
18 echo "$ARVADOS_BUILDING_VERSION"
22 $WORKSPACE/build/version-at-commit.sh $(commit_at_dir)
25 exec docker run --rm --user $UID -v $PWD:$PWD -w $PWD gradle:5.3.1 /bin/sh -c 'gradle clean && gradle test && gradle jar install '"-Pversion=$(build_version) $gradle_upload"