From 0f6dcd7067a3cd6e42a5a42fea532693f10db97c Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 8 Jul 2025 10:56:01 -0400 Subject: [PATCH] chore: removes the CLI generation --- .azure-pipelines/generation-pipeline.yml | 80 ------------------- .../generation-templates/cli-kiota.yml | 33 -------- 2 files changed, 113 deletions(-) delete mode 100644 .azure-pipelines/generation-templates/cli-kiota.yml diff --git a/.azure-pipelines/generation-pipeline.yml b/.azure-pipelines/generation-pipeline.yml index 3460e7abd..5af67ebe6 100644 --- a/.azure-pipelines/generation-pipeline.yml +++ b/.azure-pipelines/generation-pipeline.yml @@ -88,16 +88,6 @@ resources: endpoint: microsoftgraph (22) name: microsoftgraph/msgraph-beta-sdk-python ref: main - - repository: msgraph-cli - type: github - endpoint: microsoftgraph (22) - name: microsoftgraph/msgraph-cli - ref: main - - repository: msgraph-beta-cli - type: github - endpoint: microsoftgraph (22) - name: microsoftgraph/msgraph-beta-cli - ref: main - repository: msgraph-metadata type: github endpoint: microsoftgraph (22) @@ -704,76 +694,6 @@ stages: repoName: msgraph-beta-sdk-python baseDirectory: msgraph_beta -- stage: stage_cli_v1_kiota - dependsOn: - - stage_build_and_publish_kiota - - stage_v1_openapi - condition: | - and - ( - eq(dependencies.stage_build_and_publish_kiota.result, 'Succeeded'), - in(dependencies.stage_v1_openapi.result, 'Succeeded', 'Skipped') - ) - jobs: - - job: cli_v1_kiota - timeoutInMinutes: 60 - pool: - name: 1es-ubuntu-latest-ado-cli-mem - os: linux - steps: - - template: generation-templates/language-generation-kiota.yml - parameters: - language: 'cli' - version: '' - repoName: 'msgraph-cli' - baseBranchName : 'main' - branchName: 'kiota/$(v1Branch)' - targetClassName: "GraphClient" - targetNamespace: "ApiSdk" - customArguments: "-e '/me' -e '/me/**'" - cleanMetadataFolder: $(cleanOpenAPIFolderV1) - commitMessagePrefix: "feat(generation): update request builders and models" - languageSpecificSteps: - - template: generation-templates/cli-kiota.yml - parameters: - repoName: msgraph-cli - projectFile: src/msgraph-cli.csproj - -- stage: stage_cli_beta_kiota - dependsOn: - - stage_build_and_publish_kiota - - stage_beta_openapi - condition: | - and - ( - eq(dependencies.stage_build_and_publish_kiota.result, 'Succeeded'), - in(dependencies.stage_beta_openapi.result, 'Succeeded', 'Skipped') - ) - jobs: - - job: cli_beta_kiota - timeoutInMinutes: 60 - pool: - name: 1es-ubuntu-latest-ado-cli-mem - os: linux - steps: - - template: generation-templates/language-generation-kiota.yml - parameters: - language: 'cli' - version: '' - repoName: 'msgraph-beta-cli' - baseBranchName : 'main' - branchName: 'kiota/$(betaBranch)' - targetClassName: "GraphClient" - targetNamespace: "ApiSdk" - customArguments: "-e '/me' -e '/me/**'" - cleanMetadataFolder: $(cleanOpenAPIFolderBeta) - commitMessagePrefix: "feat(generation): update request builders and models" - languageSpecificSteps: - - template: generation-templates/cli-kiota.yml - parameters: - repoName: msgraph-beta-cli - projectFile: src/msgraph-beta-cli.csproj - - stage: stage_ccs_csharp_beta dependsOn: - stage_build_and_publish_kiota diff --git a/.azure-pipelines/generation-templates/cli-kiota.yml b/.azure-pipelines/generation-templates/cli-kiota.yml deleted file mode 100644 index 6ed4f6125..000000000 --- a/.azure-pipelines/generation-templates/cli-kiota.yml +++ /dev/null @@ -1,33 +0,0 @@ -parameters: - - name: repoName - type: string - - name: restorePath - type: string - default: - - name: projectFile - type: string - default: - - name: extraRestoreArgs - type: string - default: -steps: -- pwsh: '$(scriptsDirectory)/copy-cli-models-kiota.ps1' - displayName: 'Update models' - env: - BuildConfiguration: $(buildConfiguration) - OutputFullPath: $(kiotaDirectory)/output/* - RepoModelsDir: $(Build.SourcesDirectory)/${{ parameters.repoName }}/src/generated/ - WorkspaceRootDir: $(Build.SourcesDirectory)/${{ parameters.repoName }} - -- task: DotNetCoreCLI@2 - displayName: Restore packages - inputs: - command: restore - includeNuGetOrg: true - restoreArguments: --use-lock-file --locked-mode ${{parameters.extraRestoreArgs}} - restoreDirectory: ${{parameters.restorePath}} - projects: $(Build.SourcesDirectory)/${{ parameters.repoName }}/${{ parameters.projectFile }} - -- pwsh: 'dotnet build --configuration $(buildConfiguration) --no-restore ${{ parameters.restorePath }} --runtime linux-x64' - displayName: Build project ${{ parameters.repoName }} - workingDirectory: $(Build.SourcesDirectory)/${{ parameters.repoName }}/src