Skip to content

Commit e861987

Browse files
committed
testing copy files
1 parent 1d9f197 commit e861987

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.azure-pipelines/generation-templates/capture-openapi.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
templateContext:
4646
outputs:
4747
- output: pipelineArtifact
48-
targetPath: '$(Build.ArtifactStagingDirectory)'
48+
targetPath: '$(Build.ArtifactStagingDirectory)/$(Name)'
4949
artifactName: '${{ parameters.cleanMetadataFolder }}-$(Name)'
5050
steps:
5151
- checkout: self
@@ -95,21 +95,31 @@ jobs:
9595
dependsOn: convert_openapi
9696
displayName: Publish
9797
templateContext:
98-
inputs:
99-
# Download all artifacts from matrix jobs
100-
- input: pipelineArtifact
101-
patterns: '${{ parameters.cleanMetadataFolder }}-*'
102-
targetPath: '$(Build.SourcesDirectory)/msgraph-metadata/openapi/${{ parameters.endpoint }}'
10398
outputs:
10499
- output: pipelineArtifact
105-
targetPath: '$(Build.ArtifactStagingDirectory)'
100+
targetPath: '$(Build.ArtifactStagingDirectory)/publish'
106101
artifactName: ${{ parameters.cleanMetadataFolder }}
107102
steps:
108103
# We only need the scripts
109104
- checkout: self
110105
displayName: checkout generator
111106
fetchDepth: 1
112107
persistCredentials: true
108+
# Copy files from the maxtrix artifacts to a single folder
109+
- task: CopyFiles@2
110+
inputs:
111+
sourceFolder: '$(Build.ArtifactStagingDirectory)'
112+
contents: '**/*.yaml'
113+
targetFolder: '$(Build.ArtifactStagingDirectory)/publish'
114+
displayName: Copy artifact metadata
115+
# Copy files from the target path where artifacts should be downloaded
116+
- task: CopyFiles@2
117+
inputs:
118+
sourceFolder: '$(Build.ArtifactStagingDirectory)/publish'
119+
contents: '**/*.yaml'
120+
targetFolder: '$(Build.SourcesDirectory)/msgraph-metadata/openapi/${{ parameters.endpoint }}'
121+
displayName: Copy downloaded metadata
122+
113123
# publish metadata as an artifact
114124
- task: CopyFiles@2
115125
inputs:

0 commit comments

Comments
 (0)