Skip to content

Commit a20dc9e

Browse files
ci: setup stage for v1 copilot sdk (#1396)
* ci: move php beta after v1 * ci: add generation stage for v1 copilot * ci: add version name for better PR info
1 parent 3210d88 commit a20dc9e

File tree

1 file changed

+76
-28
lines changed

1 file changed

+76
-28
lines changed

.azure-pipelines/generation-pipeline.yml

Lines changed: 76 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -586,27 +586,28 @@ extends:
586586
parameters:
587587
repoName: msgraph-beta-sdk-java
588588
namespacePath: com/microsoft/graph/beta
589-
- stage: stage_php_beta_kiota
589+
590+
- stage: stage_php_v1_kiota
590591
dependsOn:
591592
- stage_build_and_publish_kiota
592-
- stage_beta_openapi
593-
- open_api_beta_approval
593+
- stage_v1_openapi
594+
- open_api_v1_approval
594595
condition: |
595596
and
596597
(
597598
eq(dependencies.stage_build_and_publish_kiota.result, 'Succeeded'),
598-
eq(dependencies.open_api_beta_approval.result, 'Succeeded'),
599-
in(dependencies.stage_beta_openapi.result, 'Succeeded', 'Skipped')
599+
eq(dependencies.open_api_v1_approval.result, 'Succeeded'),
600+
in(dependencies.stage_v1_openapi.result, 'Succeeded', 'Skipped')
600601
)
601602
jobs:
602-
- job: php_beta_kiota
603+
- job: php_v1_kiota
603604
templateContext:
604605
inputs:
605606
- input: pipelineArtifact
606607
displayName: 'Downloading metadata from artifacts'
607608
buildType: 'current'
608-
artifactName: $(cleanOpenAPIFolderBeta)
609-
targetPath: '$(Build.SourcesDirectory)/msgraph-metadata/$(cleanOpenAPIFolderBeta)'
609+
artifactName: $(cleanOpenAPIFolderV1)
610+
targetPath: '$(Build.SourcesDirectory)/msgraph-metadata/$(cleanOpenAPIFolderV1)'
610611
- input: pipelineArtifact
611612
buildType: 'current'
612613
artifactName: 'kiota'
@@ -615,41 +616,41 @@ extends:
615616
- template: /.azure-pipelines/generation-templates/language-generation-kiota.yml@self
616617
parameters:
617618
language: 'php'
618-
version: 'beta'
619-
repoName: 'msgraph-beta-sdk-php'
620-
branchName: 'kiota/$(betaBranch)'
619+
version: ''
620+
repoName: 'msgraph-sdk-php'
621+
branchName: 'kiota/$(v1Branch)'
621622
targetClassName: "BaseGraphClient"
622-
targetNamespace: 'Microsoft\\Graph\\Beta\\Generated'
623+
targetNamespace: 'Microsoft\\Graph\\Generated'
623624
baseBranchName: 'main'
624625
commitMessagePrefix: "feat(generation): update request builders and models"
625-
cleanMetadataFolder: $(cleanOpenAPIFolderBeta)
626+
cleanMetadataFolder: $(cleanOpenAPIFolderV1)
626627
languageSpecificSteps:
627628
- template: /.azure-pipelines/generation-templates/php-kiota.yml@self
628629
parameters:
629-
repoName: msgraph-beta-sdk-php
630+
repoName: msgraph-sdk-php
630631
customArguments: "-b -e '/me' -e '/me/**'" # Exclude /me/** and enable backing store
631632

632-
- stage: stage_php_v1_kiota
633+
- stage: stage_php_beta_kiota
633634
dependsOn:
634635
- stage_build_and_publish_kiota
635-
- stage_v1_openapi
636-
- open_api_v1_approval
636+
- stage_beta_openapi
637+
- open_api_beta_approval
637638
condition: |
638639
and
639640
(
640641
eq(dependencies.stage_build_and_publish_kiota.result, 'Succeeded'),
641-
eq(dependencies.open_api_v1_approval.result, 'Succeeded'),
642-
in(dependencies.stage_v1_openapi.result, 'Succeeded', 'Skipped')
642+
eq(dependencies.open_api_beta_approval.result, 'Succeeded'),
643+
in(dependencies.stage_beta_openapi.result, 'Succeeded', 'Skipped')
643644
)
644645
jobs:
645-
- job: php_v1_kiota
646+
- job: php_beta_kiota
646647
templateContext:
647648
inputs:
648649
- input: pipelineArtifact
649650
displayName: 'Downloading metadata from artifacts'
650651
buildType: 'current'
651-
artifactName: $(cleanOpenAPIFolderV1)
652-
targetPath: '$(Build.SourcesDirectory)/msgraph-metadata/$(cleanOpenAPIFolderV1)'
652+
artifactName: $(cleanOpenAPIFolderBeta)
653+
targetPath: '$(Build.SourcesDirectory)/msgraph-metadata/$(cleanOpenAPIFolderBeta)'
653654
- input: pipelineArtifact
654655
buildType: 'current'
655656
artifactName: 'kiota'
@@ -658,18 +659,18 @@ extends:
658659
- template: /.azure-pipelines/generation-templates/language-generation-kiota.yml@self
659660
parameters:
660661
language: 'php'
661-
version: ''
662-
repoName: 'msgraph-sdk-php'
663-
branchName: 'kiota/$(v1Branch)'
662+
version: 'beta'
663+
repoName: 'msgraph-beta-sdk-php'
664+
branchName: 'kiota/$(betaBranch)'
664665
targetClassName: "BaseGraphClient"
665-
targetNamespace: 'Microsoft\\Graph\\Generated'
666+
targetNamespace: 'Microsoft\\Graph\\Beta\\Generated'
666667
baseBranchName: 'main'
667668
commitMessagePrefix: "feat(generation): update request builders and models"
668-
cleanMetadataFolder: $(cleanOpenAPIFolderV1)
669+
cleanMetadataFolder: $(cleanOpenAPIFolderBeta)
669670
languageSpecificSteps:
670671
- template: /.azure-pipelines/generation-templates/php-kiota.yml@self
671672
parameters:
672-
repoName: msgraph-sdk-php
673+
repoName: msgraph-beta-sdk-php
673674
customArguments: "-b -e '/me' -e '/me/**'" # Exclude /me/** and enable backing store
674675

675676
- stage: stage_typescript_v1
@@ -878,6 +879,7 @@ extends:
878879
parameters:
879880
repoName: msgraph-sdk-python
880881
baseDirectory: msgraph
882+
881883
- stage: stage_python_beta
882884
dependsOn:
883885
- stage_build_and_publish_kiota
@@ -920,6 +922,51 @@ extends:
920922
parameters:
921923
repoName: msgraph-beta-sdk-python
922924
baseDirectory: msgraph_beta
925+
926+
- stage: stage_agents_m365copilot_csharp_v1
927+
dependsOn:
928+
- stage_build_and_publish_kiota
929+
- stage_v1_openapi
930+
condition: |
931+
and
932+
(
933+
eq(dependencies.stage_build_and_publish_kiota.result, 'Succeeded'),
934+
in(dependencies.stage_v1_openapi.result, 'Succeeded', 'Skipped')
935+
)
936+
jobs:
937+
- job: csharp_v1_agents_m365copilot
938+
templateContext:
939+
inputs:
940+
- input: pipelineArtifact
941+
displayName: 'Downloading metadata from artifacts'
942+
buildType: 'current'
943+
artifactName: $(cleanOpenAPIFolderV1)
944+
targetPath: '$(Build.SourcesDirectory)/msgraph-metadata/$(cleanOpenAPIFolderV1)'
945+
- input: pipelineArtifact
946+
buildType: 'current'
947+
artifactName: 'kiota'
948+
targetPath: '$(kiotaDirectory)'
949+
steps:
950+
- template: /.azure-pipelines/generation-templates/language-generation-kiota.yml@self
951+
parameters:
952+
language: 'csharp'
953+
version: 'v1'
954+
orgName: 'microsoft'
955+
repoName: 'Agents-M365Copilot'
956+
baseBranchName: 'main'
957+
branchName: 'ccs-dotnet/$(v1Branch)'
958+
targetClassName: "BaseAgentsM365CopilotServiceClient"
959+
targetNamespace: "Microsoft.Agents.M365Copilot"
960+
commitMessagePrefix: "feat(generation): update request builders and models for dotnet v1"
961+
customArguments: "-b -i '**/copilot/**'" # Enable the backing store, include only copilot paths
962+
cleanMetadataFolder: $(cleanOpenAPIFolderV1)
963+
pathExclusionArguments: ''
964+
languageSpecificSteps:
965+
- template: /.azure-pipelines/generation-templates/dotnet-kiota.yml@self
966+
parameters:
967+
repoName: 'Agents-M365Copilot/dotnet'
968+
packageName: Microsoft.Agents.M365Copilot
969+
923970
- stage: stage_agents_m365copilot_csharp_beta
924971
dependsOn:
925972
- stage_build_and_publish_kiota
@@ -963,6 +1010,7 @@ extends:
9631010
parameters:
9641011
repoName: 'Agents-M365Copilot/dotnet'
9651012
packageName: Microsoft.Agents.M365Copilot.Beta
1013+
9661014
- stage: stage_agents_m365copilot_python_beta
9671015
dependsOn:
9681016
- stage_build_and_publish_kiota

0 commit comments

Comments
 (0)