Skip to content

Commit 4bbaca7

Browse files
committed
Fix artifact download task
We changed the upstream pipeline to use the `publish` task which publishes _pipeline_ artifacts, not _build_ artifacts, which means this task needed to be updated.
1 parent f3fb28a commit 4bbaca7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.vsts-ci/templates/release-general.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ steps:
1717
targetType: filePath
1818
filePath: ./vscode-powershell/tools/releaseBuild/setVstsVariables.ps1
1919

20+
# TODO: Replace this with an upstream trigger.
2021
- task: PowerShell@2
2122
displayName: 'Find PowerShellEditorServices build'
2223
env:
@@ -25,17 +26,17 @@ steps:
2526
targetType: filePath
2627
filePath: ./vscode-powershell/tools/releaseBuild/findPsesBuild.ps1
2728

28-
- task: DownloadBuildArtifacts@0
29-
displayName: 'Download Build Artifacts from PowerShell Editor Services'
29+
- task: DownloadPipelineArtifact@2
30+
displayName: 'Download Artifacts from PowerShell Editor Services'
3031
inputs:
31-
buildType: specific
32+
source: specific
3233
project: '8e2735c1-3674-408a-bcab-87f089ea29d5'
3334
pipeline: 1056
34-
buildVersionToDownload: specific
35-
buildId: '$(PSES_BUILDID)'
36-
downloadType: single
37-
artifactName: 'PowerShellEditorServices'
38-
downloadPath: '$(Build.SourcesDirectory)'
35+
preferTriggeringPipeline: true
36+
runVersion: specific
37+
runId: '$(PSES_BUILDID)'
38+
artifact: 'PowerShellEditorServices'
39+
path: '$(Build.SourcesDirectory)/PowerShellEditorServices/module/'
3940

4041
- pwsh: |
4142
New-Item -ItemType Directory $(Build.ArtifactStagingDirectory)/vscode-powershell

0 commit comments

Comments
 (0)