From 18d86aabf23c913145a6f11303da5eeb0db242df Mon Sep 17 00:00:00 2001 From: Matthew John Cheetham Date: Thu, 14 May 2026 17:34:01 +0100 Subject: [PATCH 1/2] release: bump to latest EsrpClientTool task v5 Update the EsrpClientTool installer task from v4 to v5. Signed-off-by: Matthew John Cheetham --- .azure-pipelines/esrp/windows/setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/esrp/windows/setup.yml b/.azure-pipelines/esrp/windows/setup.yml index 0653b868d0a728..c7eb655c1586c2 100644 --- a/.azure-pipelines/esrp/windows/setup.yml +++ b/.azure-pipelines/esrp/windows/setup.yml @@ -9,7 +9,7 @@ parameters: type: string steps: - - task: EsrpClientTool@4 + - task: EsrpClientTool@5 name: esrpinstall displayName: 'Install ESRP client' - task: AzureCLI@2 From 5cd61fbad1d3bca3c460f63337124f8de54e321e Mon Sep 17 00:00:00 2001 From: Matthew John Cheetham Date: Fri, 15 May 2026 10:33:21 +0100 Subject: [PATCH 2/2] azure-pipelines: allow overriding Git version Allow Git version override at queue time. This skips the tag resolution to determine the Git version. Since this produces a build from an untagged commit, GitHub publishing will be skipped if set. Signed-off-by: Matthew John Cheetham --- .azure-pipelines/release.yml | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/.azure-pipelines/release.yml b/.azure-pipelines/release.yml index b1da29c2494041..c5e5d49259c8bd 100644 --- a/.azure-pipelines/release.yml +++ b/.azure-pipelines/release.yml @@ -18,6 +18,10 @@ parameters: type: boolean default: false # TODO: change default to true after testing displayName: 'Enable GitHub release publishing' + - name: 'versionOverride' + type: string + default: '-' + displayName: 'Version override (release publishing is skipped if set)' # # 1ES Pipeline Templates do not allow using a matrix strategy so we create @@ -121,12 +125,29 @@ extends: - checkout: self fetchDepth: 0 fetchTags: true - - task: Bash@3 - displayName: 'Resolve version and tag information' - name: info - inputs: - targetType: filePath - filePath: .azure-pipelines/scripts/resolve-version.sh + - ${{ if or(eq(parameters.versionOverride, ''), eq(parameters.versionOverride, '-')) }}: + - task: Bash@3 + displayName: 'Resolve version and tag information' + name: info + inputs: + targetType: filePath + filePath: .azure-pipelines/scripts/resolve-version.sh + - ${{ if and(ne(parameters.versionOverride, ''), ne(parameters.versionOverride, '-')) }}: + - task: Bash@3 + displayName: 'Set version override information' + name: info + inputs: + targetType: inline + script: | + tag_sha=$(git rev-parse HEAD) + echo "##vso[task.logissue type=warning]Using version override: ${{ parameters.versionOverride }}. Release publishing will be skipped." + echo "Git version: ${{ parameters.versionOverride }}" + echo "Tag name: untagged" + echo "Tag SHA: ${tag_sha}" + echo "##vso[task.setvariable variable=git_version;isOutput=true;isReadOnly=true]${{ parameters.versionOverride }}" + echo "##vso[task.setvariable variable=tag_name;isOutput=true;isReadOnly=true]untagged" + echo "##vso[task.setvariable variable=tag_sha;isOutput=true;isReadOnly=true]${tag_sha}" + echo "##vso[build.updatebuildnumber][UNTAGGED] ${tag_sha} (${BUILD_BUILDNUMBER:-unknown})" - stage: build displayName: 'Build' @@ -956,7 +977,7 @@ extends: - ${{ each dim in parameters.linux_matrix }}: - validate_${{ dim.id }} displayName: 'Publish GitHub release' - condition: and(succeeded(), eq('${{ parameters.github }}', true)) + condition: and(succeeded(), eq('${{ parameters.github }}', true), or(eq('${{ parameters.versionOverride }}', ''), eq('${{ parameters.versionOverride }}', '-'))) pool: name: GitClientPME-1ESHostedPool-intel-pc image: ubuntu-x86_64-ado1es