Avoid pushing Microsoft.Testing.Platform nupkg

This commit is contained in:
Amaury Levé 2023-12-13 09:22:41 +01:00
Родитель 0caccfe4e2
Коммит 8d50763eff
1 изменённых файлов: 16 добавлений и 7 удалений

Просмотреть файл

@ -141,6 +141,14 @@ stages:
name: Test
displayName: Test
- ${{ if eq(variables._RunAsInternal, True) }}:
- task: PowerShell@2
displayName: 'Delete Microsoft.Testing.Platform NuGet package'
inputs:
targetType: 'inline'
script: |
Remove-Item -Force ./artifacts/packages/$(_BuildConfig)/NonShipping/Microsoft.Testing.Platform.*.nupkg
# This step is only helpful for diagnosing some issues with vstest/test host that would not appear
# through the console or trx
- task: PublishBuildArtifacts@1
@ -151,13 +159,6 @@ stages:
condition: failed()
- ${{ if eq(variables._RunAsInternal, True) }}:
- task: PowerShell@2
displayName: 'Delete Microsoft.Testing.Platform NuGet package'
inputs:
targetType: 'inline'
script: |
Remove-Item -Force ./artifacts/packages/$(_BuildConfig)/NonShipping/Microsoft.Testing.Platform.*.nupkg
- task: NuGetAuthenticate@0
displayName: 'NuGet Authenticate to test-tools feed'
@ -200,6 +201,14 @@ stages:
name: Test
displayName: Tests
- ${{ if eq(variables._RunAsInternal, True) }}:
- task: PowerShell@2
displayName: 'Delete Microsoft.Testing.Platform NuGet package'
inputs:
targetType: 'inline'
script: |
Remove-Item -Force ./artifacts/packages/$(_BuildConfig)/NonShipping/Microsoft.Testing.Platform.*.nupkg
- ${{ if eq(variables._RunAsInternal, True) }}:
- template: /eng/common/templates/job/onelocbuild.yml
parameters: