From c2073e8e26ecd52a437122659ba8777390dd85c3 Mon Sep 17 00:00:00 2001 From: Cristian <67206480+CristianAmbrosini@users.noreply.github.com> Date: Fri, 13 Sep 2024 11:08:29 +0200 Subject: [PATCH] SCAN4NET-73 Fix choco release (#2193) Co-authored-by: Gregory Paidis <115458417+gregory-paidis-sonarsource@users.noreply.github.com> --- 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"