Skip to content

Commit f505907

Browse files
Use official OneBranch template by default for CodeQL (#2259)
The weekly CodeQL task requires being run as an official build, hence CodeQL was not yet running. The easiest fix is to set the parameter controlling that to default to true, which means introducing another parameter controlling whether to release (which defaults to false).
1 parent 2b24392 commit f505907

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.pipelines/PowerShellEditorServices-OneBranch.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ parameters:
3434
- name: OfficialBuild
3535
displayName: Use Official OneBranch template
3636
type: boolean
37+
default: true
38+
- name: Release
39+
displayName: Generate a release
40+
type: boolean
3741
default: false
3842

3943
variables:
@@ -139,7 +143,7 @@ extends:
139143
archiveFile: out/PowerShellEditorServices.zip
140144
- stage: release
141145
dependsOn: build
142-
condition: and(succeeded(), ${{ eq(parameters.OfficialBuild, true) }})
146+
condition: and(succeeded(), ${{ eq(parameters.Release, true) }})
143147
variables:
144148
ob_release_environment: ${{ iif(parameters.OfficialBuild, 'Production', 'Test') }}
145149
version: $[ stageDependencies.build.main.outputs['package.version'] ]

0 commit comments

Comments
 (0)