Skip to content

Commit b260088

Browse files
Publish NuGet test gate drop from official pipeline (#7247)
1 parent d502477 commit b260088

2 files changed

Lines changed: 12 additions & 15 deletions

File tree

eng/pipelines/templates/pipeline.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ stages:
8585
SemanticVersion: $[stageDependencies.Initialize.GetSemanticVersion.outputs['setsemanticversion.SemanticVersion']]
8686
RunSettingsDropName: 'RunSettings/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranch)/$(Build.BuildId)'
8787
ProfilingInputsDropName: 'ProfilingInputs/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranch)/$(Build.BuildId)'
88+
NuGetTestGateDropName: 'TestGate/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranch)/$(Build.BuildNumber)'
8889
pool:
8990
name: VSEng-MicroBuildVSStable
9091
templateContext:
@@ -131,6 +132,17 @@ stages:
131132
# need to make daily Apex test pipeline build its own tests, and remove this from official pipeline
132133
codeSignValidationEnabled: false
133134

135+
- output: artifactsDrop
136+
displayName: 'Publish test gate drop'
137+
condition: "and(succeeded(), eq(variables['BuildRTM'], 'false'))"
138+
dropServiceURI: 'https://devdiv.artifacts.visualstudio.com'
139+
buildNumber: '$(NuGetTestGateDropName)'
140+
sourcePath: '$(Build.StagingDirectory)\RunSettings'
141+
toLowerCase: false
142+
usePat: true
143+
dropMetadataContainerName: 'DropMetadata-TestGate'
144+
codeSignValidationEnabled: false
145+
134146
- output: artifactsDrop
135147
displayName: 'OptProfV2: publish profiling inputs to artifact services'
136148
condition: "and(succeeded(), eq(variables['IsOfficialBuild'], 'true'))"

eng/pipelines/vs-test/build.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,6 @@ steps:
225225
Write-Host "##vso[task.setvariable variable=RunSettingsDrop]$runSettingsDrop"
226226
Write-Host "##vso[task.setvariable variable=RunSettingsDrop;isOutput=true]$runSettingsDrop"
227227
228-
# Test gate drop — mirrors the product drop path with Tests/ prefix so the VS gate can find it by NuGet version
229-
$testsDrop = "${env:MicroBuild_ManifestDropName}" -replace '^Products/', 'Tests/'
230-
Write-Host "Tests Drop: $testsDrop"
231-
Write-Host "##vso[task.setvariable variable=TestsDrop]$testsDrop"
232-
233228
$vsBootstrapperBranch = dotnet msbuild -getProperty:VsTargetBranch build\config.props
234229
Write-Host "VS Bootstrapper Branch: $vsBootstrapperBranch"
235230
Write-Host "##vso[task.setvariable variable=VsBootstrapperBranch;isOutput=true]$vsBootstrapperBranch"
@@ -311,16 +306,6 @@ steps:
311306
usePat: true
312307
dropMetadataContainerName: "DropMetadata-RunSettings"
313308

314-
- task: artifactDropTask@0
315-
displayName: "Publish test gate drop"
316-
inputs:
317-
dropServiceURI: "https://devdiv.artifacts.visualstudio.com"
318-
buildNumber: "$(TestsDrop)"
319-
sourcePath: '$(Build.StagingDirectory)\RunSettings'
320-
toLowerCase: false
321-
usePat: true
322-
dropMetadataContainerName: "DropMetadata-TestGate"
323-
324309
- task: PublishPipelineArtifact@1
325310
displayName: "Publish E2E tests"
326311
inputs:

0 commit comments

Comments
 (0)