Skip to content

Commit 02aa91e

Browse files
committed
Fix issue with unsigned build (#14367)
1 parent eb6406a commit 02aa91e

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

tools/releaseBuild/azureDevOps/templates/linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
pattern: |
121121
**\*.rpm
122122
useMinimatch: true
123+
shouldSign: $(SHOULD_SIGN)
123124

124125
# requires windows
125126
- task: AzureFileCopy@4

tools/releaseBuild/azureDevOps/templates/mac-file-signing.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
pattern: |
7474
**\*.zip
7575
useMinimatch: true
76+
shouldSign: $(SHOULD_SIGN)
7677

7778
- pwsh: |
7879
$destination = "$(System.ArtifactsDirectory)\azureMacOs"
@@ -89,11 +90,12 @@ jobs:
8990
artifactName: signedMacOsBins
9091
condition: and(succeeded(), eq(variables['SHOULD_SIGN'], 'true'))
9192

92-
- template: EsrpScan.yml@ComplianceRepo
93-
parameters:
94-
scanPath: $(System.ArtifactsDirectory)\azureMacOs
95-
pattern: |
96-
**\*
93+
- ${{ if eq(variables['SHOULD_SIGN'], 'true') }}:
94+
- template: EsrpScan.yml@ComplianceRepo
95+
parameters:
96+
scanPath: $(System.ArtifactsDirectory)\azureMacOs
97+
pattern: |
98+
**\*
9799
98100
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
99101
displayName: 'Component Detection'

tools/releaseBuild/azureDevOps/templates/mac-package-signing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
pattern: |
6161
**\*.zip
6262
useMinimatch: true
63+
shouldSign: $(SHOULD_SIGN)
6364

6465
- template: upload-final-results.yml
6566
parameters:

tools/releaseBuild/azureDevOps/templates/nuget.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ jobs:
148148
pattern: |
149149
**\*.nupkg
150150
useMinimatch: true
151+
shouldSign: $(SHOULD_SIGN)
151152

152153
- pwsh: |
153154
if (-not (Test-Path '$(System.ArtifactsDirectory)\signed\')) { $null = New-Item -ItemType Directory -Path '$(System.ArtifactsDirectory)\signed\' }

tools/releaseBuild/azureDevOps/templates/windows-package-signing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
**\*.msi
5050
**\*.msix
5151
useMinimatch: true
52+
shouldSign: $(SHOULD_SIGN)
5253

5354
- powershell: |
5455
new-item -itemtype Directory -path '$(Build.StagingDirectory)\signedPackages'

tools/releaseBuild/azureDevOps/templates/windows-packaging.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ jobs:
153153
**\*.ps1
154154
**\*.exe
155155
useMinimatch: true
156+
shouldSign: $(SHOULD_SIGN)
156157

157158
- pwsh: |
158159
Import-Module $(PowerShellRoot)/build.psm1 -Force
@@ -188,6 +189,7 @@ jobs:
188189
pattern: |
189190
**\*.dll
190191
useMinimatch: true
192+
shouldSign: $(SHOULD_SIGN)
191193

192194
- powershell: |
193195
Get-ChildItem '$(System.ArtifactsDirectory)\thirdPartySigned\*'

tools/releaseBuild/setReleaseTag.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if($ReleaseTag -eq 'fromBranch' -or !$ReleaseTag)
7979
New-BuildInfoJson -ReleaseTag $releaseTag
8080
}
8181
}
82-
elseif($branchOnly -eq 'master' -or $branchOnly -like '*dailytest*')
82+
elseif(($branchOnly -eq 'master' -and $env:BUILD_REASON -ne 'Manual') -or $branchOnly -like '*dailytest*')
8383
{
8484
$isDaily = $true
8585
Write-Verbose "daily build" -Verbose

0 commit comments

Comments
 (0)