Skip to content

Commit

Permalink
pipelines: Add service connection param to extention release template (
Browse files Browse the repository at this point in the history
…#1869)

* pipelines: Add service connection param to extention release template

* Rename

* Update readme
  • Loading branch information
alexweininger authored Jan 13, 2025
1 parent b0a65c0 commit 3795a4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions azure-pipelines/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 6 additions & 1 deletion azure-pipelines/release-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 3795a4b

Please sign in to comment.