mirror of
https://github.com/overte-org/overte.git
synced 2025-04-06 17:33:05 +02:00
36 lines
1,022 B
Bash
Executable file
36 lines
1,022 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -xeuo pipefail
|
|
|
|
DOCKER_IMAGE_NAME="hifi_androidbuild"
|
|
|
|
docker build --build-arg BUILD_UID=`id -u` -t "${DOCKER_IMAGE_NAME}" -f docker/Dockerfile docker
|
|
|
|
# The Jenkins PR builds use VERSION_CODE, but the release builds use VERSION
|
|
# So make sure we use VERSION_CODE consistently
|
|
test -z "$VERSION_CODE" && export VERSION_CODE=$VERSION
|
|
|
|
# FIXME figure out which of these actually need to be forwarded and which can be eliminated
|
|
docker run \
|
|
--rm \
|
|
--security-opt seccomp:unconfined \
|
|
-v "${WORKSPACE}":/home/jenkins/hifi \
|
|
-e RELEASE_NUMBER \
|
|
-e RELEASE_TYPE \
|
|
-e ANDROID_APP \
|
|
-e ANDROID_BUILT_APK_NAME \
|
|
-e ANDROID_APK_NAME \
|
|
-e ANDROID_BUILD_TARGET \
|
|
-e ANDROID_BUILD_DIR \
|
|
-e CMAKE_BACKTRACE_URL \
|
|
-e CMAKE_BACKTRACE_TOKEN \
|
|
-e CMAKE_BACKTRACE_SYMBOLS_TOKEN \
|
|
-e GA_TRACKING_ID \
|
|
-e OAUTH_CLIENT_SECRET \
|
|
-e OAUTH_CLIENT_ID \
|
|
-e OAUTH_REDIRECT_URI \
|
|
-e SHA7 \
|
|
-e VERSION_CODE \
|
|
"${DOCKER_IMAGE_NAME}" \
|
|
sh -c "./build_android.sh"
|
|
|
|
|