From 13d8dd1ba13a3f1249893038ae306c7b2a4259e5 Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Fri, 4 Sep 2026 16:06:07 -0700 Subject: [PATCH] build: make title prefix optional Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- build/azure-pipelines/product-build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build/azure-pipelines/product-build.yml b/build/azure-pipelines/product-build.yml index 24b4082b048263..fc50555d07c236 100644 --- a/build/azure-pipelines/product-build.yml +++ b/build/azure-pipelines/product-build.yml @@ -44,9 +44,9 @@ parameters: - Product - CI - name: VSCODE_BUILD_TITLE_PREFIX - displayName: "Build title prefix" + displayName: "Build Title Prefix" type: string - default: '' + default: none - name: NPM_REGISTRY displayName: "Custom NPM Registry" type: string @@ -139,6 +139,11 @@ parameters: default: auto variables: + - name: VSCODE_BUILD_TITLE_PREFIX + ${{ if eq(parameters.VSCODE_BUILD_TITLE_PREFIX, 'none') }}: + value: "" + ${{ else }}: + value: ${{ parameters.VSCODE_BUILD_TITLE_PREFIX }} - name: VSCODE_PRIVATE_BUILD value: ${{ ne(variables['Build.Repository.Uri'], 'https://github.com/microsoft/vscode.git') }} - name: NPM_REGISTRY @@ -221,7 +226,7 @@ variables: - name: ARTIFACT_PREFIX value: '' -name: "${{ parameters.VSCODE_BUILD_TITLE_PREFIX }}$(Date:yyyyMMdd).$(Rev:r) (${{ parameters.VSCODE_QUALITY }})" +name: "$(VSCODE_BUILD_TITLE_PREFIX)$(Date:yyyyMMdd).$(Rev:r) (${{ parameters.VSCODE_QUALITY }})" resources: repositories: