dotnet-installer/scripts/ci_build.sh

23 lines
501 B
Bash
Raw Normal View History

2015-10-21 12:07:54 -07:00
#!/usr/bin/env bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2015-10-22 12:14:58 -07:00
if [[ "$(uname)" == "Linux" ]]; then
# Set Docker Container name to be unique
container_name=""
#Jenkins
[ ! -z "$BUILD_TAG" ] && container_name="$BUILD_TAG"
#VSO
[ ! -z "$BUILD_BUILDID" ] && container_name="$BUILD_BUILDID"
export DOTNET_BUILD_CONTAINER_NAME="$container_name"
$SCRIPT_DIR/dockerbuild.sh debian $@
2015-10-22 12:14:58 -07:00
else
$SCRIPT_DIR/../build.sh $@
fi
2015-10-21 12:07:54 -07:00
ret_code=$?
exit $ret_code