Skip to content

Commit d51aa7c

Browse files
committed
ci: move php beta after v1
1 parent 81a92e2 commit d51aa7c

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

.azure-pipelines/generation-pipeline.yml

Lines changed: 29 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

0 commit comments

Comments
 (0)