Skip to content

Commit a13eb38

Browse files
committed
ci: add workflow for generating typescript and python v1 copilot libs
1 parent 725f160 commit a13eb38

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

.azure-pipelines/generation-pipeline.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,50 @@ extends:
10111011
repoName: 'Agents-M365Copilot/dotnet'
10121012
packageName: Microsoft.Agents.M365Copilot.Beta
10131013

1014+
- stage: stage_agents_m365copilot_python_v1
1015+
dependsOn:
1016+
- stage_build_and_publish_kiota
1017+
- stage_v1_openapi
1018+
condition: |
1019+
and
1020+
(
1021+
eq(dependencies.stage_build_and_publish_kiota.result, 'Succeeded'),
1022+
in(dependencies.stage_v1_openapi.result, 'Succeeded', 'Skipped')
1023+
)
1024+
jobs:
1025+
- job: python_v1_agents_m365copilot
1026+
templateContext:
1027+
inputs:
1028+
- input: pipelineArtifact
1029+
displayName: 'Downloading metadata from artifacts'
1030+
buildType: 'current'
1031+
artifactName: $(cleanOpenAPIFolderV1)
1032+
targetPath: '$(Build.SourcesDirectory)/msgraph-metadata/$(cleanOpenAPIFolderV1)'
1033+
- input: pipelineArtifact
1034+
buildType: 'current'
1035+
artifactName: 'kiota'
1036+
targetPath: '$(kiotaDirectory)'
1037+
steps:
1038+
- template: /.azure-pipelines/generation-templates/language-generation-kiota.yml@self
1039+
parameters:
1040+
language: 'python'
1041+
version: 'v1'
1042+
orgName: 'microsoft'
1043+
repoName: 'Agents-M365Copilot'
1044+
baseBranchName: 'main'
1045+
branchName: 'ccs-python/$(v1Branch)'
1046+
targetClassName: "BaseAgentsM365CopilotServiceClient"
1047+
targetNamespace: "microsoft_agents_m365copilot.generated"
1048+
customArguments: "-b -i '**/copilot/**'" # Enable the backing store, include only copilot paths
1049+
cleanMetadataFolder: $(cleanOpenAPIFolderV1)
1050+
commitMessagePrefix: "feat(generation): update request builders and models for python v1"
1051+
pathExclusionArguments: ''
1052+
languageSpecificSteps:
1053+
- template: /.azure-pipelines/generation-templates/python.yml@self
1054+
parameters:
1055+
repoName: 'Agents-M365Copilot/python/packages'
1056+
baseDirectory: microsoft_agents_m365copilot/microsoft_agents_m365copilot
1057+
10141058
- stage: stage_agents_m365copilot_python_beta
10151059
dependsOn:
10161060
- stage_build_and_publish_kiota
@@ -1054,6 +1098,51 @@ extends:
10541098
parameters:
10551099
repoName: 'Agents-M365Copilot/python/packages'
10561100
baseDirectory: microsoft_agents_m365copilot_beta/microsoft_agents_m365copilot_beta
1101+
1102+
- stage: stage_agents_m365copilot_typescript_v1
1103+
dependsOn:
1104+
- stage_build_and_publish_kiota
1105+
- stage_v1_openapi
1106+
condition: |
1107+
and
1108+
(
1109+
eq(dependencies.stage_build_and_publish_kiota.result, 'Succeeded'),
1110+
in(dependencies.stage_v1_openapi.result, 'Succeeded', 'Skipped')
1111+
)
1112+
jobs:
1113+
- job: typescript_beta_agents_m365copilot
1114+
templateContext:
1115+
inputs:
1116+
- input: pipelineArtifact
1117+
displayName: 'Downloading metadata from artifacts'
1118+
buildType: 'current'
1119+
artifactName: $(cleanOpenAPIFolderV1)
1120+
targetPath: '$(Build.SourcesDirectory)/msgraph-metadata/$(cleanOpenAPIFolderV1)'
1121+
- input: pipelineArtifact
1122+
buildType: 'current'
1123+
artifactName: 'kiota'
1124+
targetPath: '$(kiotaDirectory)'
1125+
steps:
1126+
- template: /.azure-pipelines/generation-templates/language-generation-kiota.yml@self
1127+
parameters:
1128+
language: 'typescript'
1129+
version: 'beta'
1130+
orgName: 'microsoft'
1131+
repoName: 'Agents-M365Copilot'
1132+
baseBranchName: 'main'
1133+
branchName: 'ccs-typescript/$(v1Branch)'
1134+
commitMessagePrefix: "feat(generation): update request builders and models for typescript v1"
1135+
targetClassName: "BaseAgentsM365CopilotServiceClient"
1136+
targetNamespace: "github.com/microsoft/Agents-M365Copilot/typescript/"
1137+
customArguments: "-b -i '**/copilot/**'"
1138+
cleanMetadataFolder: $(cleanOpenAPIFolderV1)
1139+
pathExclusionArguments: ''
1140+
languageSpecificSteps:
1141+
- template: /.azure-pipelines/generation-templates/ccs-typescript-sdk.yml@self
1142+
parameters:
1143+
repoName: 'Agents-M365Copilot/typescript'
1144+
packageName: '@microsoft/agents-m365copilot'
1145+
10571146
- stage: stage_agents_m365copilot_typescript_beta
10581147
dependsOn:
10591148
- stage_build_and_publish_kiota

0 commit comments

Comments
 (0)