Merge pull request #6973 from dotnet-maestro-bot/merge/release/3.1.3xx-to-release/5.0.1xx-preview2
[automated] Merge branch 'release/3.1.3xx' => 'release/5.0.1xx-preview2'
This commit is contained in:
commit
807bc78362
3 changed files with 25 additions and 5 deletions
|
@ -24,7 +24,6 @@ This project has adopted the code of conduct defined by the [Contributor Covenan
|
|||
|:------:|
|
||||
|[![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/286)](https://dev.azure.com/dnceng/internal/_build?definitionId=286)|
|
||||
|
||||
|
||||
Installers and Binaries
|
||||
-----------------------
|
||||
|
||||
|
|
|
@ -99,9 +99,30 @@ fi
|
|||
# VSO
|
||||
[ ! -z "$BUILD_BUILDID" ] && DOTNET_BUILD_CONTAINER_NAME="$BUILD_BUILDID"
|
||||
|
||||
function retry {
|
||||
local max_count=$1
|
||||
shift
|
||||
|
||||
local count=0
|
||||
until "$@"; do
|
||||
exit=$?
|
||||
wait=$((2 ** $count))
|
||||
count=$(($count + 1))
|
||||
if [[ ${count} -lt ${max_count} ]]; then
|
||||
echo "Retry $count/$max_count returned $exit, wait $wait seconds..."
|
||||
sleep ${wait}
|
||||
else
|
||||
echo "Retry $count/$max_count returned $exit."
|
||||
return ${exit}
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
||||
# Build the docker container (will be fast if it is already built)
|
||||
# with retry since docker pull has high failure rate
|
||||
echo "Building Docker Container using Dockerfile: $DOCKERFILE"
|
||||
docker build --build-arg WORK_DIR=$DOCKER_HOST_SHARE_DIR --build-arg USER_ID=$(id -u) -t $DOTNET_BUILD_CONTAINER_TAG $DOCKERFILE
|
||||
retry 10 docker build --build-arg WORK_DIR=$DOCKER_HOST_SHARE_DIR --build-arg USER_ID=$(id -u) -t $DOTNET_BUILD_CONTAINER_TAG $DOCKERFILE 2>&1
|
||||
|
||||
# Run the build in the container
|
||||
echo "Launching build in Docker Container"
|
||||
|
|
|
@ -14,19 +14,19 @@
|
|||
<_NETStandardLibraryPackageVersion>$(NETStandardLibraryRefPackageVersion)</_NETStandardLibraryPackageVersion>
|
||||
<_NETCorePlatformsPackageVersion>$(MicrosoftNETCorePlatformsPackageVersion)</_NETCorePlatformsPackageVersion>
|
||||
|
||||
<_NETCoreApp30RuntimePackVersion>3.0.1</_NETCoreApp30RuntimePackVersion>
|
||||
<_NETCoreApp30RuntimePackVersion>3.0.3</_NETCoreApp30RuntimePackVersion>
|
||||
<_NETCoreApp30TargetingPackVersion>3.0.0</_NETCoreApp30TargetingPackVersion>
|
||||
|
||||
<_NETCoreApp31RuntimePackVersion>3.1.2</_NETCoreApp31RuntimePackVersion>
|
||||
<_NETCoreApp31TargetingPackVersion>3.1.0</_NETCoreApp31TargetingPackVersion>
|
||||
|
||||
<_WindowsDesktop30RuntimePackVersion>3.0.1</_WindowsDesktop30RuntimePackVersion>
|
||||
<_WindowsDesktop30RuntimePackVersion>3.0.3</_WindowsDesktop30RuntimePackVersion>
|
||||
<_WindowsDesktop30TargetingPackVersion>3.0.0</_WindowsDesktop30TargetingPackVersion>
|
||||
|
||||
<_WindowsDesktop31RuntimePackVersion>3.1.2</_WindowsDesktop31RuntimePackVersion>
|
||||
<_WindowsDesktop31TargetingPackVersion>3.1.0</_WindowsDesktop31TargetingPackVersion>
|
||||
|
||||
<_AspNet30RuntimePackVersion>3.0.1</_AspNet30RuntimePackVersion>
|
||||
<_AspNet30RuntimePackVersion>3.0.3</_AspNet30RuntimePackVersion>
|
||||
<_AspNet30TargetingPackVersion>3.0.1</_AspNet30TargetingPackVersion>
|
||||
|
||||
<_AspNet31RuntimePackVersion>3.1.2</_AspNet31RuntimePackVersion>
|
||||
|
|
Loading…
Reference in a new issue