@@ -30,7 +30,7 @@ parameters:
30
30
default : ' tsp-output'
31
31
- name : metadataAnnotationsCopyScriptPath
32
32
type : string
33
- default : ' $(metadataTypeSpecAnnotationsSource) /../scripts/copy-annotations-to-csdl.ps1'
33
+ default : $[format('{0} /../scripts/copy-annotations-to-csdl.ps1', parameters['metadataTypeSpecAnnotationsSource'])]
34
34
- name : sanitizedEndpoint
35
35
type : string
36
36
default : $[replace(parameters['endpoint'], '/', ''))]
99
99
endpointVersion : ${{ parameters.endpoint }}
100
100
displayName : ' run Typewriter to clean ${{ parameters.endpoint }} metadata'
101
101
102
- - pwsh : ' $( metadataAnnotationsCopyScriptPath) -targetCsdlPath "$(Build.SourcesDirectory)/msgraph-metadata/clean_${{ parameters.sanitizedEndpoint }}_metadata/cleanMetadataWithDescriptions${{ parameters.endpoint }}.xml" -sourceCsdlDirectoryPath "$(metadataTypeSpecAnnotationsSource)/$(metadataTypeSpecAnnotationsOutputDir)"'
102
+ - pwsh : ' $[parameters[ '' metadataAnnotationsCopyScriptPath'' ]] -targetCsdlPath "$(Build.SourcesDirectory)/msgraph-metadata/clean_${{ parameters.sanitizedEndpoint }}_metadata/cleanMetadataWithDescriptions${{ parameters.endpoint }}.xml" -sourceCsdlDirectoryPath "$(metadataTypeSpecAnnotationsSource)/$(metadataTypeSpecAnnotationsOutputDir)"'
103
103
104
104
# # Only run if the previous step was successful
105
105
- pwsh : ' $(scriptsDirectory)/run-typewriter-clean-metadata.ps1'
@@ -116,7 +116,7 @@ steps:
116
116
OutputMetadataFileName : ' cleanMetadataWithDescriptionsAndAnnotations'
117
117
displayName : ' run Typewriter to clean ${{ parameters.endpoint }} metadata and keep capability annotations'
118
118
119
- - pwsh : ' $( metadataAnnotationsCopyScriptPath) -targetCsdlPath "$(Build.SourcesDirectory)/msgraph-metadata/clean_$(sanitizedEndpoint)_metadata/cleanMetadataWithDescriptionsAndAnnotations${{ parameters.endpoint }}.xml" -sourceCsdlDirectoryPath "$(metadataTypeSpecAnnotationsSource)/$(metadataTypeSpecAnnotationsOutputDir)"'
119
+ - pwsh : ' $[parameters[ '' metadataAnnotationsCopyScriptPath'' ]] -targetCsdlPath "$(Build.SourcesDirectory)/msgraph-metadata/clean_$(sanitizedEndpoint)_metadata/cleanMetadataWithDescriptionsAndAnnotations${{ parameters.endpoint }}.xml" -sourceCsdlDirectoryPath "$(metadataTypeSpecAnnotationsSource)/$(metadataTypeSpecAnnotationsOutputDir)"'
120
120
121
121
# # Only run if the previous step was successful
122
122
- pwsh : ' $(scriptsDirectory)/run-typewriter-clean-metadata.ps1'
@@ -134,7 +134,7 @@ steps:
134
134
OutputMetadataFileName : ' cleanMetadataWithDescriptionsAndAnnotationsAndErrors'
135
135
displayName : ' run Typewriter to clean ${{ parameters.endpoint }} metadata and keep capability annotations and include error information'
136
136
137
- - pwsh : ' $( metadataAnnotationsCopyScriptPath) -targetCsdlPath "$(Build.SourcesDirectory)/msgraph-metadata/clean_$(sanitizedEndpoint)_metadata/cleanMetadataWithDescriptionsAndAnnotationsAndErrors${{ parameters.endpoint }}.xml" -sourceCsdlDirectoryPath "$(metadataTypeSpecAnnotationsSource)/$(metadataTypeSpecAnnotationsOutputDir)"'
137
+ - pwsh : ' $[parameters[ '' metadataAnnotationsCopyScriptPath'' ]] -targetCsdlPath "$(Build.SourcesDirectory)/msgraph-metadata/clean_$(sanitizedEndpoint)_metadata/cleanMetadataWithDescriptionsAndAnnotationsAndErrors${{ parameters.endpoint }}.xml" -sourceCsdlDirectoryPath "$(metadataTypeSpecAnnotationsSource)/$(metadataTypeSpecAnnotationsOutputDir)"'
138
138
139
139
140
140
# publish metadata as an artifact
0 commit comments