Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using pipeline resource #14877

Merged
merged 1 commit into from
Sep 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions eng/pipelines/aggregate-reports.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
resources:
pipelines:
- pipeline: net-core
project: internal
source: net - core
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this support the id number instead of name? If so that might be a little more stable if we rename this pipeline.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using the pipeline Id does not work.

branch: master
tags:
- scheduled

trigger: none

pr:
Expand All @@ -18,29 +27,20 @@ jobs:
vmImage: 'windows-2019'

steps:
- task: UseDotNet@2
displayName: 'Use .NET Core sdk $(DotNetCoreSDKVersion)'
inputs:
version: '$(DotNetCoreSDKVersion)'
- download: net-core
artifact: packages
patterns: '*'

- template: /eng/common/pipelines/templates/steps/verify-links.yml
parameters:
Directory: ""

- pwsh: mkdir '$(System.ArtifactsDirectory)/BuildArtifacts'
- pwsh: |
mkdir "$(System.ArtifactsDirectory)/BuildArtifacts"
ls "$(PIPELINE.WORKSPACE)/net-core/packages"
Copy-Item -Path "$(PIPELINE.WORKSPACE)/net-core/packages/*" -Destination "$(System.ArtifactsDirectory)/BuildArtifacts"
displayName: Create Artifact Directory

- task: DownloadPipelineArtifact@2
displayName: 'Download Pipeline Artifact'
inputs:
buildType: specific
project: $(TargetPipelineProjectId)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might be able to delete these variables in the pipeline once your change goes in.

definition: $(TargetPipelineDefinition)
buildVersionToDownload: latestFromBranch
branchName: $(TargetPipelineBranch)
tags: scheduled
artifactName: packages
targetPath: '$(System.ArtifactsDirectory)/BuildArtifacts'

- pwsh: |
mkdir '$(System.ArtifactsDirectory)/Packages'
Expand Down