Skip to content

Commit 6a77e4b

Browse files
committed
testing change
1 parent d742363 commit 6a77e4b

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

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

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ jobs:
4242
matrix: $[ dependencies.get_conversion_settings.outputs['setTargets.targets'] ]
4343
variables:
4444
targets: $[ dependencies.get_conversion_settings.outputs['setTargets.targets'] ]
45-
templateContext:
46-
outputs:
47-
- output: pipelineArtifact
48-
targetPath: '$(Build.ArtifactStagingDirectory)'
49-
artifactName: ${{ parameters.cleanMetadataFolder }}
5045
steps:
5146
- checkout: self
5247
displayName: checkout generator
@@ -78,13 +73,6 @@ jobs:
7873
displayName: 'update ${{ parameters.endpoint }} open API description'
7974
workingDirectory: $(Build.SourcesDirectory)/msgraph-metadata
8075

81-
# publish metadata as an artifact
82-
- task: CopyFiles@2
83-
inputs:
84-
sourceFolder: ${{ parameters.outputPath }}
85-
contents: '**/$(Name).yaml'
86-
targetFolder: '$(Build.ArtifactStagingDirectory)'
87-
displayName: Copy generated metadata
8876
- pwsh: |
8977
./scripts/run-openapi-validation.ps1 -repoDirectory (Get-Location).Path -version "${{ parameters.endpoint }}" -platformName "$(Name)"
9078
displayName: ensure that OpenAPI docs can be parsed
@@ -95,11 +83,18 @@ jobs:
9583
dependsOn: convert_openapi
9684
displayName: Publish
9785
templateContext:
98-
inputs:
99-
- input: pipelineArtifact
100-
targetPath: $(Build.SourcesDirectory)/msgraph-metadata/openapi/${{ parameters.endpoint }}
86+
outputs:
87+
- output: pipelineArtifact
88+
targetPath: '$(Build.ArtifactStagingDirectory)'
10189
artifactName: ${{ parameters.cleanMetadataFolder }}
10290
steps:
91+
# publish metadata as an artifact
92+
- task: CopyFiles@2
93+
inputs:
94+
sourceFolder: ${{ parameters.outputPath }}
95+
contents: '**/*.yaml'
96+
targetFolder: '$(Build.ArtifactStagingDirectory)'
97+
displayName: Copy generated metadata
10398
# We only need the scripts
10499
- checkout: self
105100
displayName: checkout generator

0 commit comments

Comments
 (0)