Skip to content

Commit af61208

Browse files
committed
Add parameter to specify base directory
1 parent 6aa56d8 commit af61208

File tree

3 files changed

+8
-20
lines changed

3 files changed

+8
-20
lines changed

.azure-pipelines/generation-pipeline.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ stages:
749749
- template: generation-templates/python.yml
750750
parameters:
751751
repoName: msgraph-sdk-python
752+
baseDirectory: msgraph
752753

753754
- stage: stage_python_beta
754755
dependsOn:
@@ -774,9 +775,10 @@ stages:
774775
customArguments: "-b -e '/me' -e '/me/**'" # Enable backing store, Exclude me
775776
cleanMetadataFolder: $(cleanOpenAPIFolderBeta)
776777
languageSpecificSteps:
777-
- template: generation-templates/python-beta.yml
778+
- template: generation-templates/python.yml
778779
parameters:
779780
repoName: msgraph-beta-sdk-python
781+
baseDirectory: msgraph_beta
780782

781783
- stage: stage_cli_v1_kiota
782784
dependsOn:

.azure-pipelines/generation-templates/python-beta.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.azure-pipelines/generation-templates/python.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@ parameters:
22
- name: repoName
33
type: string
44

5+
- name: baseDirectory
6+
type: string
7+
58
steps:
69
- pwsh: '$(scriptsDirectory)/clean-python-files.ps1'
710
displayName: 'Remove generated models and requests from the repo generated folder'
811
env:
9-
RepoModelsDir: '$(Build.SourcesDirectory)/${{ parameters.repoName }}/msgraph/generated'
12+
RepoModelsDir: '$(Build.SourcesDirectory)/${{ parameters.repoName }}/${{ parameters.baseDirectory }}/generated'
1013

1114
- pwsh: '$(scriptsDirectory)/copy-python-models.ps1'
1215
displayName: 'Update models'
1316
env:
1417
BuildConfiguration: $(buildConfiguration)
1518
OutputFullPath: $(kiotaDirectory)/output/*
16-
RepoModelsDir: '$(Build.SourcesDirectory)/${{ parameters.repoName }}/msgraph/generated'
19+
RepoModelsDir: '$(Build.SourcesDirectory)/${{ parameters.repoName }}/${{ parameters.baseDirectory }}/generated'
1720

0 commit comments

Comments
 (0)