Skip to content
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

Disable the PipelineCaching e2e test for forks #76

Merged
merged 1 commit into from
Jun 22, 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
3 changes: 3 additions & 0 deletions .azuredevops/pipelines/templates/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ steps:

- task: PowerShell@2
displayName: "E2E Test: Microsoft.MSBuildCache.AzurePipelines"
# The access token from forks do not have enough scopes to access the pipeline cache, so skip these tests.
# Note to repo maintainers: You can manually run the pipeline against the commit, even if the commit is from a fork, if you wish to test this.
condition: ne(variables['System.PullRequest.IsFork'], 'True')
inputs:
filePath: ${{ parameters.RepoRoot }}\tests\test.ps1
arguments: -MSBuildPath "${{ parameters.MSBuildPath }}" -Configuration $(BuildConfiguration) -LogDirectory "$(LogDirectory)\Tests\AzurePipelines" -LocalPackageDir "$(Pipeline.Workspace)\artifacts\$(BuildConfiguration)\packages" -CachePackage Microsoft.MSBuildCache.AzurePipelines
Expand Down