Skip to content

Commit

Permalink
fixing signed nugets to include build number
Browse files Browse the repository at this point in the history
  • Loading branch information
brettsam committed Mar 7, 2018
1 parent 2f0e9a1 commit 32d6d35
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tools/PollSigningResults.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,15 @@ if (-not $isPr -and $env:SkipAssemblySigning -ne "true") {
Expand-Archive "$PSScriptRoot/../bin/signed.zip" "$PSScriptRoot/../bin/sign"

MSBuild.exe "$PSScriptRoot/../WebJobs.proj" /t:ReplaceDlls /p:Configuration=Release

MSBuild.exe "$PSScriptRoot/../src/Packages/Packages.csproj" /t:Rebuild "/p:Configuration=Release;BUILD_NUMBER=$env:APPVEYOR_BUILD_VERSION;OutputPath=$PSScriptRoot/../bin/Packages;RunCodeAnalysis=false"

$packageSuffixCmd = ""
$isOfficialBuild = Test-Path env:APPVEYOR_REPO_TAG_NAME
if (-not $isOfficialBuild)
{
$packageSuffixCmd = "/p:PackageSuffix=-$env:APPVEYOR_BUILD_NUMBER"
}

MSBuild.exe "$PSScriptRoot/../src/Packages/Packages.csproj" /v:minimal /t:Rebuild "/p:Configuration=Release;OutputPath=$PSScriptRoot/../bin/Packages;RunCodeAnalysis=false" $packageSuffixCmd

Get-ChildItem "$PSScriptRoot/../bin/PackagesNuGet" | % {
Push-AppveyorArtifact $_.FullName
Expand Down

0 comments on commit 32d6d35

Please sign in to comment.