Skip to content

Commit 949a559

Browse files
Build nupkg and sign it
1 parent b7e887c commit 949a559

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.pipelines/templates/build-nuget.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ jobs:
7676
$vstsCommandString = "vso[task.setvariable variable=SymbolsPath]$symbolsRoot"
7777
Write-Verbose -Message "$vstsCommandString" -Verbose
7878
Write-Host -Object "##$vstsCommandString"
79+
80+
Write-Verbose -Verbose "Build nupkg"
81+
New-NugetPackage -PackageRoot $PackageRoot -NuGetOutputPath '$(ob_outputDirectory)\NugetPackage'
82+
83+
Write-Verbose -Verbose "Cleanup output folder"
84+
Get-ChildItem -Path "$(ob_outputDirectory)" -Exclude "NugetPackage", "symbols" | Remove-Item -Recurse -Force -Verbose
85+
86+
Write-Verbose -Verbose "Enumerating $(ob_outputDirectory)"
87+
Get-ChildItem -Path "$(ob_outputDirectory)" -Recurse
7988
displayName: 'Build NuPkg'
8089
8190
- task: PublishSymbols@2
@@ -86,3 +95,12 @@ jobs:
8695
publishSymbols: true
8796
symbolServerType: teamServices
8897
detailedLog: true
98+
99+
- task: onebranch.pipeline.signing@1
100+
displayName: Sign files
101+
inputs:
102+
command: 'sign'
103+
cp_code: 'CP-401405'
104+
files_to_sign: |
105+
**\*.nupkg;
106+
search_root: $(ob_outputDirectory)

0 commit comments

Comments
 (0)