Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavis Goodin <dagood@users.noreply.github.com>2019-09-17 18:00:14 +0300
committerGitHub <noreply@github.com>2019-09-17 18:00:14 +0300
commit3f9ba8e95567517b9ddf77b8d55eda547473c744 (patch)
treed109190c1b33cc639dc4a937a858337cfa83486f /eng/install-nuget-credprovider-then-msbuild.sh
parentba5b34ab990afc76246a93af4011582ca69fbc86 (diff)
Add internal build support (dotnet/core-setup#8279)
Add NuGetAuthenticate task. Create proxy build scripts that include pre-build auth plugin install. Add workaround to avoid running test restore against authenticated feed. Pass the NuGet auth env vars set by the AzDO build step into the Docker container. Add configurability for internal publish. Commit migrated from https://github.com/dotnet/core-setup/commit/a896b3ee381b6d58830613def6f118e16a8a6dc7
Diffstat (limited to 'eng/install-nuget-credprovider-then-msbuild.sh')
-rw-r--r--eng/install-nuget-credprovider-then-msbuild.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/eng/install-nuget-credprovider-then-msbuild.sh b/eng/install-nuget-credprovider-then-msbuild.sh
new file mode 100644
index 00000000000..4781ba1a8b6
--- /dev/null
+++ b/eng/install-nuget-credprovider-then-msbuild.sh
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+set -e
+
+# Installs the NuGet Credential Provider, then calls common/msbuild.sh with all arguments. This
+# creates a build context that can restore from authenticated sources. This script is intended for
+# use by the official Microsoft build inside a Docker container.
+
+source="${BASH_SOURCE[0]}"
+
+# resolve $SOURCE until the file is no longer a symlink
+while [[ -h $source ]]; do
+ scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
+ source="$(readlink "$source")"
+
+ # if $source was a relative symlink, we need to resolve it relative to the path where the
+ # symlink file was located
+ [[ $source != /* ]] && source="$scriptroot/$source"
+done
+
+scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
+
+. "$scriptroot/install-nuget-credprovider.sh"
+
+"$scriptroot/common/msbuild.sh" "$@"