Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

"ExternalRestoreSources" needs to be set in the docker container #8602

Merged
merged 4 commits into from
Feb 14, 2018

Conversation

johnbeisner
Copy link

@johnbeisner johnbeisner commented Feb 13, 2018

Follow-up action completed:
ExternalRestoreSources is set as an VSO variable and removed as a property from BuildArguments in AllLinux: https://devdiv.visualstudio.com/DevDiv/Default/_build/index?context=allDefinitions&path=%5CDotNet%5CCLI%5Cmaster&definitionId=7254


The "ExternalRestoreSources" value needs to be set in the internal call to 'build.sh'. Another way to say this is: since 'build.sh' writes a new Nuget.Config for the 'SandBox' working directory; "ExternalRestoreSources" needs to be set in the docker container.

Final fix:
Using an environmental variable to communicate "ExternalRestoreSources" to the docker container.
Follow-up:
Add "ExternalRestoreSources" as a VSO variable to: https://devdiv.visualstudio.com/DevDiv/Default/_build/index?context=allDefinitions&path=%5CDotNet%5CCLI%5Cmaster&definitionId=7254


Testing - with "20180213-02" orchestrated build inputs:
https://devdiv.visualstudio.com/DevDiv/Default/_build/index?buildId=1381420 FAILED

New test build:
https://devdiv.visualstudio.com/DevDiv/Default/_build/index?buildId=1381703 FAILED

Reference: dotnet/msbuild#1622
Passing the 'ExternalRestoreSource's property explictly is not working as msbuild turns the URL into a local path by turning "//" into "/"

Final try:
https://devdiv.visualstudio.com/DevDiv/Default/_build/index?buildId=1382529 SUCCESS

@nguerrera
Copy link
Contributor

(Aside: I read this variable as ResToResource. 😕)

@livarcocc livarcocc added this to the 2.1.3xx milestone Feb 13, 2018
@johnbeisner johnbeisner changed the title Add "PB_RESTORESOURCE" to docker environmental variables. Add "ExternalRestoreSources" explictly to the 'SandBox' build.sh call Feb 14, 2018
@johnbeisner johnbeisner changed the title Add "ExternalRestoreSources" explictly to the 'SandBox' build.sh call Add "ExternalRestoreSources" explicitly to the 'SandBox' build.sh call Feb 14, 2018
@johnbeisner johnbeisner changed the title Add "ExternalRestoreSources" explicitly to the 'SandBox' build.sh call "ExternalRestoreSources" needs to be set in the docker container Feb 14, 2018
@johnbeisner johnbeisner merged commit e6cdfeb into dotnet:release/2.1.3xx Feb 14, 2018
livarcocc added a commit that referenced this pull request Feb 15, 2018
…ease/2.1.3xx-to-master

* dotnet/release/2.1.3xx:
  Update to aspnetcore 2.1.0-preview1-28275 and react to feed layout changes (#8611)
  "ExternalRestoreSources" needs to be set in the docker container (#8602)
  Signing nupkg contents (Cli.Utils and MSBuildResolver) along with the rest of the compiled assemblies.
  Use satellites from roslyn package, not cli-deps-satellites
  Update to roslyn 2.7.0-beta3-62612-07 for 2.1.1xx
  Support TildeSlash expand (#8589)
  Port Kernel Version telemetry to preview1
  Do not create a directory with a trailing space; it cannot be deleted by conventional methods. (#8587)
  Consume generic aspnetcore rpm installers
  Insert NuGet Build 4.6.0-rtm-4918 into cli
  Adding roslyn to automatic dependency flow through maestro.
  Fixing update dependency by using the new APIs. We broke this when we updated the version of VersionTools.
  MSBuild 15.6.81
  Update SDK to 2.1.300-preview1-62608-07
  MSBuild 15.6.80

 Conflicts:
	build/DependencyVersions.props
	test/Microsoft.DotNet.ShellShim.Tests/ShellShimMakerTests.cs
@johnbeisner johnbeisner deleted the AllLinuxFix branch February 25, 2018 23:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants