diff --git a/azure-pipelines/README.md b/azure-pipelines/README.md index f6e3bd6514..94108ade34 100644 --- a/azure-pipelines/README.md +++ b/azure-pipelines/README.md @@ -172,6 +172,7 @@ extends: publishVersion: ${{ parameters.publishVersion }} dryRun: ${{ parameters.dryRun }} environmentName: AzCodeDeploy # CUSTOMIZE + ExtensionReleaseServiceConnection: AzCodeReleases # CUSTOMIZE ``` The extension release pipeline has the following parameters. diff --git a/azure-pipelines/release-extension.yml b/azure-pipelines/release-extension.yml index 0e6a42ce09..1ee044db91 100644 --- a/azure-pipelines/release-extension.yml +++ b/azure-pipelines/release-extension.yml @@ -17,6 +17,11 @@ parameters: type: string default: AzCodeDeploy + # The service connection to use to authenticate the vsce to publish the extension. + - name: ExtensionReleaseServiceConnection + type: string + default: AzCodeReleases + # When true, skips the deployment job which actually publishes the extension - name: dryRun type: boolean @@ -137,7 +142,7 @@ extends: displayName: "\U0001F449 Run vsce publish" condition: and(succeeded(), ${{ eq(parameters.dryRun, false) }}) inputs: - azureSubscription: AzCodeReleases + azureSubscription: ${{ parameters.ExtensionReleaseServiceConnection }} scriptType: pscore scriptLocation: inlineScript inlineScript: |