Skip to content

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

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions eng/pipelines/templates/jobs/vmr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The 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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Expand Down
Loading