test downbload

This commit is contained in:
Leilei Zhang
2025-07-04 17:20:46 +08:00
parent 0c425fd1d7
commit 2f082e0935

View File

@@ -24,32 +24,19 @@ parameters:
default: false
stages:
- stage: Build_${{ parameters.platform }}
displayName: Build ${{ parameters.platform }}
- stage: Download
displayName: Download From Release Pipeline
jobs:
- template: templates/job-build-project.yml
parameters:
pool:
${{ if eq(variables['System.CollectionId'], 'cb55739e-4afe-46a3-970f-1b49d8ee7564') }}:
name: SHINE-INT-L
${{ else }}:
name: SHINE-OSS-L
${{ if eq(parameters.useVSPreview, true) }}:
demands: ImageOverride -equals SHINE-VS17-Preview
buildPlatforms:
- ${{ parameters.platform }}
buildConfigurations: [Release]
enablePackageCaching: true
enableMsBuildCaching: ${{ parameters.enableMsBuildCaching }}
runTests: true
useVSPreview: ${{ parameters.useVSPreview }}
- stage: OneFuzz
displayName: Fuzz ${{ parameters.platform }}
dependsOn:
- Build_${{parameters.platform}}
jobs:
- template: templates/job-fuzz.yml
parameters:
platform: ${{ parameters.platform }}
configuration: Release
- job: Download
displayName: Download artifact from release pipeline and Fuzz
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: 'Dart'
definition: '76541' # main branch build pipeline 的 definitionId
buildVersionToDownload: 'latest'
branchName: 'refs/heads/main'
artifactName: 'build-x64-Release/PowerToysSetup-0.0.1-x64.exe'
targetPath: '$(Build.ArtifactStagingDirectory)'