From 2f082e093547aab1ea76dd85b6e873afc7cdb176 Mon Sep 17 00:00:00 2001 From: Leilei Zhang Date: Fri, 4 Jul 2025 17:20:46 +0800 Subject: [PATCH] test downbload --- .pipelines/v2/oneFuzz.yml | 43 ++++++++++++++------------------------- 1 file changed, 15 insertions(+), 28 deletions(-) diff --git a/.pipelines/v2/oneFuzz.yml b/.pipelines/v2/oneFuzz.yml index 2bcbf36050..5d618323b8 100644 --- a/.pipelines/v2/oneFuzz.yml +++ b/.pipelines/v2/oneFuzz.yml @@ -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)' +