Skip to content

Commit 77d4a6b

Browse files
committed
ci: add generation stage for v1 copilot
1 parent d51aa7c commit 77d4a6b

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.azure-pipelines/generation-pipeline.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,7 @@ extends:
879879
parameters:
880880
repoName: msgraph-sdk-python
881881
baseDirectory: msgraph
882+
882883
- stage: stage_python_beta
883884
dependsOn:
884885
- stage_build_and_publish_kiota
@@ -921,6 +922,51 @@ extends:
921922
parameters:
922923
repoName: msgraph-beta-sdk-python
923924
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: ''
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+
924970
- stage: stage_agents_m365copilot_csharp_beta
925971
dependsOn:
926972
- stage_build_and_publish_kiota
@@ -964,6 +1010,7 @@ extends:
9641010
parameters:
9651011
repoName: 'Agents-M365Copilot/dotnet'
9661012
packageName: Microsoft.Agents.M365Copilot.Beta
1013+
9671014
- stage: stage_agents_m365copilot_python_beta
9681015
dependsOn:
9691016
- stage_build_and_publish_kiota

0 commit comments

Comments
 (0)