@@ -6,6 +6,8 @@ parameters:
66 default :
77 - pwsh : |
88 Write-Error "No download step is provided"
9+ - name : isCopilotGeneration
10+ type : boolean
911
1012steps :
1113- template : set-user-config.yml
@@ -23,13 +25,29 @@ steps:
2325 submodules : recursive
2426 condition : or(eq(variables.skipMetadataCaptureAndClean, true), eq(variables.skipOpenApiCaptureAndClean, true))
2527
28+ - checkout : ccs-beta-sdk-dotnet
29+ displayName : checkout ccs-beta-sdk-dotnet to grab the openapi.yaml
30+ fetchDepth : 1
31+ persistCredentials : true
32+ submodules : recursive
33+ condition : ${{ eq(parameters.isCopilotGeneration, true) }}
34+
35+ - pwsh : |
36+ md $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi
37+ md $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi
38+ Copy-Item -Path $(Build.SourcesDirectory)/ccs-beta-sdk-dotnet/openApiDocs/ccs-beta-review-openapi.yml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi/openapi.yaml
39+ Copy-Item -Path $(Build.SourcesDirectory)/ccs-beta-sdk-dotnet/openApiDocs/ccs-beta-review-openapi.yml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi/openapi.yaml
40+ displayName : Move Custom CCS metadata to expected location
41+ condition : ${{ eq(parameters.isCopilotGeneration, true) }}
42+
43+
2644- pwsh : |
2745 md $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi
2846 md $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi
2947 Move-Item -Path $(Build.SourcesDirectory)/msgraph-metadata/openapi/v1.0/openapi.yaml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi/
3048 Move-Item -Path $(Build.SourcesDirectory)/msgraph-metadata/openapi/beta/openapi.yaml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi/
3149 displayName : Move metadata to expected location
32- condition : or(eq(variables.skipMetadataCaptureAndClean, true), eq(variables.skipOpenApiCaptureAndClean, true))
50+ condition : and( or(eq(variables.skipMetadataCaptureAndClean, true), eq(variables.skipOpenApiCaptureAndClean, true)), ${{ eq(parameters.isCopilotGeneration, false) }} )
3351
3452# if capture and clean step is not skipped
3553# then download the artifact from capture and clean steps
4159 downloadType : ' single'
4260 artifactName : ${{ parameters.cleanMetadataFolder }}
4361 downloadPath : ' $(Build.SourcesDirectory)/msgraph-metadata'
44- condition : and(eq(variables.skipMetadataCaptureAndClean, false), eq(variables.skipOpenApiCaptureAndClean, false))
62+ condition : and(eq(variables.skipMetadataCaptureAndClean, false), eq(variables.skipOpenApiCaptureAndClean, false), ${{ eq(parameters.isCopilotGeneration, false) }} )
4563 displayName : Downloading metadata from artifacts
0 commit comments