From e8bcc1d4dfdaab4ce45dceaa226fb8689272f4d0 Mon Sep 17 00:00:00 2001 From: Gregory Paidis <115458417+gregory-paidis-sonarsource@users.noreply.github.com> Date: Wed, 4 Sep 2024 09:00:00 +0200 Subject: [PATCH] Remove build number from choco packages (#2174) --- scripts/generate-packages.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/generate-packages.ps1 b/scripts/generate-packages.ps1 index 7ea607745..6a34a6187 100644 --- a/scripts/generate-packages.ps1 +++ b/scripts/generate-packages.ps1 @@ -1,14 +1,13 @@ param ($sourcesDirectory) [xml]$versionProps = Get-Content "$env:BUILD_SOURCESDIRECTORY\scripts\version\Version.props" -$leakPeriodVersion = $versionProps.Project.PropertyGroup.MainVersion +$version= $versionProps.Project.PropertyGroup.MainVersion + $versionProps.Project.PropertyGroup.PrereleaseSuffix $artifactsFolder = "$env:BUILD_SOURCESDIRECTORY\\build" -$version = $leakPeriodVersion + '.' + $env:BUILD_BUILDID $netFrameworkScannerZipPath = Get-Item "$artifactsFolder\\sonarscanner-net-framework.zip" $netScannerZipPath = Get-Item "$artifactsFolder\\sonarscanner-net.zip" -$netScannerGlobalToolPath = Get-Item "$artifactsFolder\\dotnet-sonarscanner.$leakPeriodVersion.nupkg" +$netScannerGlobalToolPath = Get-Item "$artifactsFolder\\dotnet-sonarscanner.$version.nupkg" $sbomJsonPath = Get-Item "$sourcesDirectory\build\bom.json" Write-Host "Generating the chocolatey packages"