From 71fb1b3ff0313f363e5dba80eb975e6b7ab0e652 Mon Sep 17 00:00:00 2001 From: Sebastien Marichal Date: Thu, 13 Jun 2024 16:56:38 +0200 Subject: [PATCH] Fix NuGet pack Global Tool --- azure-pipelines.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8ff44efc5..4d36d86a7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -185,13 +185,10 @@ stages: Package-NetFrameworkScanner -SignAssemblies $signAssemblies Package-NetScanner -SignAssemblies $signAssemblies - - task: NuGetCommand@2 + - powershell: | + nuget help | Select-String "NuGet Version" + nuget pack 'nuspec\netcoreglobaltool\dotnet-sonarscanner.nuspec' -NonInteractive -OutputDirectory build -Verbosity Detailed displayName: 'Package dotnet global tool' - inputs: - command: 'pack' - packagesToPack: 'nuspec\netcoreglobaltool\dotnet-sonarscanner.nuspec' - packDestination: 'build' - versioningScheme: 'off' - powershell: | nuget sign "$env:PACKAGES_PATH" -Overwrite -HashAlgorithm SHA256 -CertificateFingerprint $(SM_CERT_FP) -Timestamper http://timestamp.digicert.com -TimestampHashAlgorithm SHA256