|
45 | 45 | templateContext: |
46 | 46 | outputs: |
47 | 47 | - output: pipelineArtifact |
48 | | - targetPath: '$(Build.ArtifactStagingDirectory)' |
| 48 | + targetPath: '$(Build.ArtifactStagingDirectory)/$(Name)' |
49 | 49 | artifactName: '${{ parameters.cleanMetadataFolder }}-$(Name)' |
50 | 50 | steps: |
51 | 51 | - checkout: self |
@@ -95,21 +95,31 @@ jobs: |
95 | 95 | dependsOn: convert_openapi |
96 | 96 | displayName: Publish |
97 | 97 | 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 }}' |
103 | 98 | outputs: |
104 | 99 | - output: pipelineArtifact |
105 | | - targetPath: '$(Build.ArtifactStagingDirectory)' |
| 100 | + targetPath: '$(Build.ArtifactStagingDirectory)/publish' |
106 | 101 | artifactName: ${{ parameters.cleanMetadataFolder }} |
107 | 102 | steps: |
108 | 103 | # We only need the scripts |
109 | 104 | - checkout: self |
110 | 105 | displayName: checkout generator |
111 | 106 | fetchDepth: 1 |
112 | 107 | 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 | + |
113 | 123 | # publish metadata as an artifact |
114 | 124 | - task: CopyFiles@2 |
115 | 125 | inputs: |
|
0 commit comments