|
| 1 | +trigger: none |
| 2 | + |
| 3 | +parameters: # parameters are shown up in ADO UI in a build queue time |
| 4 | + - name: 'debug' |
| 5 | + displayName: 'Enable debug output' |
| 6 | + type: boolean |
| 7 | + default: false |
| 8 | + |
| 9 | +variables: |
| 10 | + - name: CDP_DEFINITION_BUILD_COUNT |
| 11 | + value: $[counter('', 0)] |
| 12 | + - name: system.debug |
| 13 | + value: ${{ parameters.debug }} |
| 14 | + - name: ob_outputDirectory |
| 15 | + value: '$(Build.ArtifactStagingDirectory)/ONEBRANCH_ARTIFACT' |
| 16 | + - name: WindowsContainerImage |
| 17 | + value: 'onebranch.azurecr.io/windows/ltsc2022/vse2022:latest' |
| 18 | + - name: LinuxContainerImage |
| 19 | + value: mcr.microsoft.com/onebranch/cbl-mariner/build:2.0 |
| 20 | + |
| 21 | +resources: |
| 22 | + repositories: |
| 23 | + - repository: templates |
| 24 | + type: git |
| 25 | + name: OneBranch.Pipelines/GovernedTemplates |
| 26 | + ref: refs/heads/main |
| 27 | + |
| 28 | + pipelines: |
| 29 | + - pipeline: AIShellPackagePipeline |
| 30 | + source: 'AIShell-Package-Official' |
| 31 | + trigger: |
| 32 | + branches: |
| 33 | + include: |
| 34 | + - release-* |
| 35 | + |
| 36 | +extends: |
| 37 | + template: v2/OneBranch.Official.CrossPlat.yml@templates |
| 38 | + parameters: |
| 39 | + cloudvault: |
| 40 | + enabled: false |
| 41 | + featureFlags: |
| 42 | + LinuxHostVersion: |
| 43 | + Network: KS3 |
| 44 | + WindowsHostVersion: |
| 45 | + Version: 2022 |
| 46 | + # Azure container/blob operations get blocked when using KS3 |
| 47 | + Network: KS2 |
| 48 | + globalSdl: |
| 49 | + asyncSdl: |
| 50 | + enabled: true |
| 51 | + tsaOptionsFile: .config\tsaoptions.json |
| 52 | + |
| 53 | + stages: |
| 54 | + - stage: msixbundle |
| 55 | + displayName: 'Create MSIX Bundle' |
| 56 | + jobs: |
| 57 | + - template: /.pipelines/templates/release-msix-bundle.yml@self |
| 58 | + |
| 59 | + - stage: ManualValidation |
| 60 | + dependsOn: [] |
| 61 | + displayName: Manual Validation |
| 62 | + jobs: |
| 63 | + - template: /.pipelines/templates/wait-for-approval.yml@self |
| 64 | + parameters: |
| 65 | + displayName: Validate Windows Packages |
| 66 | + jobName: ValidateWinPkg |
| 67 | + instructions: | |
| 68 | + Validate zip package on Windows |
| 69 | + - template: /.pipelines/templates/wait-for-approval.yml@self |
| 70 | + parameters: |
| 71 | + displayName: Validate OSX Packages |
| 72 | + jobName: ValidateOsxPkg |
| 73 | + instructions: | |
| 74 | + Validate tar.gz package on macOS |
| 75 | + - template: /.pipelines/templates/wait-for-approval.yml@self |
| 76 | + parameters: |
| 77 | + displayName: Validate Linux Packages |
| 78 | + jobName: ValidateLinuxPkg |
| 79 | + instructions: | |
| 80 | + Validate tar.gz package on Linux |
| 81 | + - template: /.pipelines/templates/wait-for-approval.yml@self |
| 82 | + parameters: |
| 83 | + displayName: Validate AIShell module |
| 84 | + jobName: ValidateModule |
| 85 | + instructions: | |
| 86 | + Validate AIShell module |
| 87 | + - template: /.pipelines/templates/wait-for-approval.yml@self |
| 88 | + parameters: |
| 89 | + displayName: Validate NuGet SDK |
| 90 | + jobName: ValidateSDK |
| 91 | + instructions: | |
| 92 | + Validate NuGet SDK package |
| 93 | +
|
| 94 | + - stage: UpdateChangeLog |
| 95 | + displayName: Update the changelog |
| 96 | + dependsOn: |
| 97 | + - ManualValidation |
| 98 | + - msixbundle |
| 99 | + jobs: |
| 100 | + - template: /.pipelines/templates/wait-for-approval.yml@self |
| 101 | + parameters: |
| 102 | + displayName: Make sure the changelog is updated |
| 103 | + jobName: MergeChangeLog |
| 104 | + instructions: | |
| 105 | + Update and merge the changelog for the release. |
| 106 | + This step is required for creating GitHub draft release. |
| 107 | +
|
| 108 | + - stage: PublishGitHubRelease |
| 109 | + displayName: Publish GitHub Release |
| 110 | + dependsOn: BlobPublic |
| 111 | + jobs: |
| 112 | + - template: /.pipelines/templates/release-publish-github.yml@self |
| 113 | + |
| 114 | + - stage: PublishNuGet |
| 115 | + displayName: Publish NuGet |
| 116 | + dependsOn: PublishGitHubRelease |
| 117 | + jobs: |
| 118 | + - template: /.pipelines/templates/release-publish-nuget.yml@self |
| 119 | + parameters: |
| 120 | + publish: false |
| 121 | + |
| 122 | + - stage: PublishModule |
| 123 | + displayName: Publish Module |
| 124 | + dependsOn: PublishGitHubRelease |
| 125 | + jobs: |
| 126 | + - template: /.pipelines/templates/release-publish-module.yml@self |
| 127 | + parameters: |
| 128 | + publish: false |
| 129 | + |
| 130 | + - stage: PublishMsix |
| 131 | + dependsOn: PublishGitHubRelease |
| 132 | + displayName: Publish MSIX to store |
| 133 | + jobs: |
| 134 | + - template: /.pipelines/templates/wait-for-approval.yml@self |
| 135 | + parameters: |
| 136 | + displayName: Publish the MSIX Bundle package to store |
| 137 | + jobName: PublishMsix |
| 138 | + instructions: | |
| 139 | + Ask Steve to release MSIX bundle package to Store |
| 140 | +
|
| 141 | + - stage: ReleaseDone |
| 142 | + displayName: Finish Release |
| 143 | + dependsOn: ['PublishMsix', 'PublishModule', 'PublishNuGet'] |
| 144 | + jobs: |
| 145 | + - template: /.pipelines/templates/wait-for-approval.yml@self |
| 146 | + parameters: |
| 147 | + displayName: Retain Build |
| 148 | + jobName: RetainBuild |
| 149 | + instructions: | |
| 150 | + Retain the build |
| 151 | + - template: /.pipelines/templates/wait-for-approval.yml@self |
| 152 | + parameters: |
| 153 | + displayName: Delete release branch |
| 154 | + jobName: DeleteBranch |
| 155 | + instructions: | |
| 156 | + Delete release |
0 commit comments