Skip to content

Commit

Permalink
SCAN4NET-73 Fix choco release (#2193)
Browse files Browse the repository at this point in the history
Co-authored-by: Gregory Paidis <[email protected]>
  • Loading branch information
1 parent b3dda00 commit c2073e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/generate-packages.ps1
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit c2073e8

Please sign in to comment.