From 8370b1e2cfc3d030c0f18e8938a1b6b7fe438118 Mon Sep 17 00:00:00 2001 From: Joel Verhagen Date: Fri, 15 Mar 2019 15:59:11 -0700 Subject: [PATCH] Sign the output NuGet packages (#492) Progress on https://github.com/NuGet/Engineering/issues/2244 --- .nuget/packages.config | 1 + build.ps1 | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.nuget/packages.config b/.nuget/packages.config index ab73ed3f0..3b129347f 100644 --- a/.nuget/packages.config +++ b/.nuget/packages.config @@ -1,5 +1,6 @@  + diff --git a/build.ps1 b/build.ps1 index 58de156e9..08b5b208a 100644 --- a/build.ps1 +++ b/build.ps1 @@ -9,7 +9,7 @@ param ( [string]$SemanticVersion = '1.0.0-zlocal', [string]$Branch, [string]$CommitSHA, - [string]$BuildBranch = 'b5f9d1c89da96c462935e2195ceb00e69287b93e' + [string]$BuildBranch = '2d8feecabe3aeaed7f5b4d50b9be78c94faf39ec' ) # For TeamCity - If any issue occurs, this script fails the build. - By default, TeamCity returns an exit code of 0 for all powershell scripts, even if they fail @@ -122,6 +122,11 @@ Invoke-BuildStep 'Creating artifacts' { } ` -ev +BuildErrors +Invoke-BuildStep 'Signing the packages' { + Sign-Packages -Configuration $Configuration -BuildNumber $BuildNumber -MSBuildVersion "15" ` + } ` + -ev +BuildErrors + Trace-Log ('-' * 60) ## Calculating Build time