Update buildtools, add --env parameter to dockerbuild.sh, and allow overriding KOREBUILD_SKIP_INSTALL_NETFX
This commit is contained in:
parent
9e959fc9cb
commit
dea1950bdc
2
build.sh
2
build.sh
|
|
@ -278,7 +278,7 @@ msbuild_args[${#msbuild_args[*]}]="-p:_RunPack=$run_pack"
|
|||
msbuild_args[${#msbuild_args[*]}]="-p:_RunTests=$run_tests"
|
||||
|
||||
# Disable downloading ref assemblies as a tarball. Use netfx refs from the Microsoft.NETFramework.ReferenceAssemblies NuGet package instead.
|
||||
KOREBUILD_SKIP_INSTALL_NETFX=1
|
||||
[ -z "${KOREBUILD_SKIP_INSTALL_NETFX:-}" ] && KOREBUILD_SKIP_INSTALL_NETFX=1
|
||||
|
||||
set_korebuildsettings "$tools_source" "$DOTNET_HOME" "$repo_path" "$config_file" "$ci"
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
|
||||
<SubmoduleRoot>$(RepositoryRoot)src\</SubmoduleRoot>
|
||||
|
||||
<ArtifactsShippingPackagesDir>$(ArtifactsDir)\packages\$(Configuration)\Shipping\</ArtifactsShippingPackagesDir>
|
||||
<ArtifactsNonShippingPackagesDir>$(ArtifactsDir)\packages\$(Configuration)\NonShipping\</ArtifactsNonShippingPackagesDir>
|
||||
<ArtifactsShippingPackagesDir>$(ArtifactsDir)packages\$(Configuration)\Shipping\</ArtifactsShippingPackagesDir>
|
||||
<ArtifactsNonShippingPackagesDir>$(ArtifactsDir)packages\$(Configuration)\NonShipping\</ArtifactsNonShippingPackagesDir>
|
||||
<InstallersOutputPath>$(ArtifactsDir)installers\$(Configuration)\</InstallersOutputPath>
|
||||
|
||||
<SignCheckExclusionsFile>$(RepositoryRoot)eng\signcheck.exclusions.txt</SignCheckExclusionsFile>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ __usage() {
|
|||
echo ""
|
||||
echo "Options:"
|
||||
echo " -v, --volume <VOLUME> An additional volume mount to add to the build container"
|
||||
echo " -e, --env <NAME=VAL> Additional environment variables to add to the build container"
|
||||
echo ""
|
||||
echo "Description:"
|
||||
echo " This will run build.sh inside the dockerfile as defined in build/docker/\$image.Dockerfile."
|
||||
|
|
@ -69,6 +70,13 @@ while [[ $# -gt 0 ]]; do
|
|||
docker_args[${#docker_args[*]}]="--volume"
|
||||
docker_args[${#docker_args[*]}]="$volume_spec"
|
||||
;;
|
||||
-e|--env)
|
||||
shift
|
||||
env_var="${1:-}"
|
||||
[ -z "$env_var" ] && __error "Missing value for parameter --env" && __usage
|
||||
docker_args[${#docker_args[*]}]="-e"
|
||||
docker_args[${#docker_args[*]}]="$env_var"
|
||||
;;
|
||||
*)
|
||||
build_args[${#build_args[*]}]="$1"
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@
|
|||
</PropertyGroup>
|
||||
<PropertyGroup Label="Build tool dependencies">
|
||||
<InternalAspNetCoreSdkPackageVersion>$(KoreBuildVersion)</InternalAspNetCoreSdkPackageVersion>
|
||||
<InternalAspNetCoreSdkPackageVersion Condition=" '$(KoreBuildVersion)' == '' ">3.0.0-build-20190118.3</InternalAspNetCoreSdkPackageVersion>
|
||||
<InternalAspNetCoreSdkPackageVersion Condition=" '$(KoreBuildVersion)' == '' ">3.0.0-build-20190118.4</InternalAspNetCoreSdkPackageVersion>
|
||||
<MicrosoftNETFrameworkReferenceAssembliesPackageVersion>1.0.0-alpha-004</MicrosoftNETFrameworkReferenceAssembliesPackageVersion>
|
||||
<MicrosoftNETTestSdkPackageVersion>15.9.0</MicrosoftNETTestSdkPackageVersion>
|
||||
</PropertyGroup>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
"version": "3.0.100-preview-009750"
|
||||
},
|
||||
"msbuild-sdks": {
|
||||
"Internal.AspNetCore.Sdk": "3.0.0-build-20190118.3"
|
||||
"Internal.AspNetCore.Sdk": "3.0.0-build-20190118.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
version:3.0.0-build-20190118.3
|
||||
commithash:27bad0e40ebbb1b8f1d4b7143edc600974fbe3db
|
||||
version:3.0.0-build-20190118.4
|
||||
commithash:dc060235e4056a2a5ec0141fa89da9e490544268
|
||||
|
|
|
|||
Loading…
Reference in New Issue