-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Setup private feeds for tests #43041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -383,6 +383,20 @@ jobs: | |
|
||
# Only run tests if enabled | ||
- ${{ if eq(parameters.runTests, 'True') }}: | ||
# Setup the NuGet sources used by the tests to use private feeds. This is necessary when testing internal-only product | ||
# builds where the packages are only available in the private feeds. This allows the tests to restore from those feeds. | ||
- ${{ if eq(variables['System.TeamProject'], 'internal') }}: | ||
- task: Bash@3 | ||
displayName: Setup Private Feeds Credentials | ||
inputs: | ||
filePath: $(sourcesPath)/src/sdk/eng/common/SetupNugetSources.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Orthogonal comment) Isn't this going to be needed for the unified build when we do official release builds (non-source-build)? It would be needed before the build. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Logged https://github.com/dotnet/source-build/issues/4584 for this. |
||
arguments: $(sourcesPath)/src/sdk/NuGet.config $Token | ||
env: | ||
Token: $(dn-bot-dnceng-artifact-feeds-rw) | ||
|
||
- script: cp "$(sourcesPath)/src/sdk/NuGet.config" "$(sourcesPath)/test/Microsoft.DotNet.SourceBuild.SmokeTests/assets/online.NuGet.Config" | ||
displayName: Copy Test NuGet Config for Smoke Tests | ||
|
||
- script: | | ||
set -ex | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.