Skip to content

Commit 25d257c

Browse files
committed
Trigger release pipeline on PowerShellEditorServices
This will build the master branch, so we have to lie to ADO.
1 parent 0c5808a commit 25d257c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.vsts-ci/azure-pipelines-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ resources:
3838
type: github
3939
endpoint: ComplianceGHRepo
4040
name: PowerShell/Compliance
41+
pipelines:
42+
- pipeline: PowerShellEditorServices
43+
source: PowerShellEditorServices
44+
trigger:
45+
branches:
46+
- master
47+
- releases/*
48+
- changelog*
49+
- refs/tags/*
4150

4251
jobs:
4352

.vsts-ci/templates/release-general.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
1717
targetType: filePath
1818
filePath: ./vscode-powershell/tools/releaseBuild/setVstsVariables.ps1
1919

20-
# TODO: Replace this with an upstream trigger.
20+
# TODO: Remove this when satisfied with added trigger.
2121
- task: PowerShell@2
2222
displayName: 'Find PowerShellEditorServices build'
2323
env:
@@ -54,6 +54,8 @@ steps:
5454

5555
- template: EsrpSign.yml@ComplianceRepo
5656
parameters:
57+
# Force signing when build is triggered manually or by our pipeline resource.
58+
shouldSign: $[in(variables['Build.Reason'], 'Manual', 'ResourceTrigger')]
5759
buildOutputPath: '$(Build.ArtifactStagingDirectory)/vscode-powershell'
5860
signOutputPath: '$(Build.ArtifactStagingDirectory)/Signed'
5961
alwaysCopy: true # So publishing works

0 commit comments

Comments
 (0)