From bdb3404bca1f71b9e7303dc321a7b0c65b88e05e Mon Sep 17 00:00:00 2001 From: alexweininger Date: Mon, 13 Jan 2025 13:27:13 -0500 Subject: [PATCH 1/3] pipelines: Add service connection param to extention release template --- azure-pipelines/release-extension.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/azure-pipelines/release-extension.yml b/azure-pipelines/release-extension.yml index 0e6a42ce09..7e482e65ae 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: serviceConnection + 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.serviceConnection }} scriptType: pscore scriptLocation: inlineScript inlineScript: | From 4787d54d6767ca2b4f61460ad09e379371f356bb Mon Sep 17 00:00:00 2001 From: alexweininger Date: Mon, 13 Jan 2025 13:34:08 -0500 Subject: [PATCH 2/3] Rename --- azure-pipelines/release-extension.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines/release-extension.yml b/azure-pipelines/release-extension.yml index 7e482e65ae..1ee044db91 100644 --- a/azure-pipelines/release-extension.yml +++ b/azure-pipelines/release-extension.yml @@ -18,7 +18,7 @@ parameters: default: AzCodeDeploy # The service connection to use to authenticate the vsce to publish the extension. - - name: serviceConnection + - name: ExtensionReleaseServiceConnection type: string default: AzCodeReleases @@ -142,7 +142,7 @@ extends: displayName: "\U0001F449 Run vsce publish" condition: and(succeeded(), ${{ eq(parameters.dryRun, false) }}) inputs: - azureSubscription: ${{ parameters.serviceConnection }} + azureSubscription: ${{ parameters.ExtensionReleaseServiceConnection }} scriptType: pscore scriptLocation: inlineScript inlineScript: | From 4e2bc8d8dfb603b271205c7e8be8a761afc3bd71 Mon Sep 17 00:00:00 2001 From: alexweininger Date: Mon, 13 Jan 2025 14:05:02 -0500 Subject: [PATCH 3/3] Update readme --- azure-pipelines/README.md | 1 + 1 file changed, 1 insertion(+) 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.