Skip to content

Commit 3f1abc4

Browse files
authored
Add beta generation for CLI. (#1057)
1 parent cda2ad8 commit 3f1abc4

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.azure-pipelines/generation-pipeline.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ resources:
9898
endpoint: microsoftgraph
9999
name: microsoftgraph/msgraph-cli
100100
ref: main
101+
- repository: msgraph-beta-cli
102+
type: github
103+
endpoint: microsoftgraph
104+
name: microsoftgraph/msgraph-beta-cli
105+
ref: main
101106
- repository: msgraph-metadata
102107
type: github
103108
endpoint: microsoftgraph
@@ -801,6 +806,37 @@ stages:
801806
- template: generation-templates/cli-kiota.yml
802807
parameters:
803808
repoName: msgraph-cli
809+
projectFile: ./msgraph-cli.csproj
810+
811+
- stage: stage_cli_beta_kiota
812+
dependsOn:
813+
- stage_build_and_publish_kiota
814+
- stage_beta_openapi
815+
condition: |
816+
and
817+
(
818+
eq(dependencies.stage_build_and_publish_kiota.result, 'Succeeded'),
819+
eq(dependencies.stage_beta_openapi.result, 'Succeeded')
820+
)
821+
jobs:
822+
- job: cli_beta_kiota
823+
steps:
824+
- template: generation-templates/language-generation-kiota.yml
825+
parameters:
826+
language: 'cli'
827+
version: ''
828+
repoName: 'msgraph-cli'
829+
baseBranchName : 'main'
830+
branchName: 'kiota/$(betaBranch)'
831+
targetClassName: "GraphClient"
832+
targetNamespace: "ApiSdk"
833+
customArguments: "-e '/me' -e '/me/**'"
834+
cleanMetadataFolder: $(cleanOpenAPIFolderBeta)
835+
languageSpecificSteps:
836+
- template: generation-templates/cli-kiota.yml
837+
parameters:
838+
repoName: msgraph-beta-cli
839+
projectFile: ./msgraph-beta-cli.csproj
804840

805841
# - stage: stage_objc_v1
806842
# dependsOn:

.azure-pipelines/generation-templates/cli-kiota.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ parameters:
44
- name: restorePath
55
type: string
66
default:
7+
- name: projectFile
8+
type: string
9+
default:
710
- name: extraRestoreArgs
811
type: string
912
default:
@@ -24,6 +27,6 @@ steps:
2427
restoreArguments: --use-lock-file --locked-mode ${{parameters.extraRestoreArgs}}
2528
restoreDirectory: ${{parameters.restorePath}}
2629

27-
- pwsh: 'dotnet build --configuration $(buildConfiguration) --no-restore ./msgraph-cli.csproj --runtime linux-x64'
30+
- pwsh: 'dotnet build --configuration $(buildConfiguration) --no-restore ${{ parameters.restorePath }} --runtime linux-x64'
2831
displayName: Build project ${{ parameters.repoName }}
2932
workingDirectory: $(Build.SourcesDirectory)/${{ parameters.repoName }}/src

0 commit comments

Comments
 (0)