Epinova / epinova-dxp-deployment

DXP deployment with Azure DevOps release tasks
MIT License
14 stars 10 forks source link

DeployNuGetPackage.ps1 (2.9.6) throws when trying to call [System.Convert]::ToBoolean($RunBenchmark) #328

Open walleboom opened 1 week ago

walleboom commented 1 week ago

DeployNuGetPackage.ps1 (2.9.6) throws when trying to call [System.Convert]::ToBoolean($RunBenchmark)

2024-10-25T15:04:58.3151202Z ##[error]Exception calling "ToBoolean" with "1" argument(s): "String was not recognized as a valid Boolean."
At D:\a\_tasks\DxpDeployNuGetPackage_2bc993e5-c27c-4a24-aeaf-0fc403debc8d\2.9.6\DeployNuGetPackage.ps1:36 char:5

2024-10-25T15:04:58.3154164Z ##[error]Exception calling "ToBoolean" with "1" argument(s): "String was not recognized as a valid Boolean."
At D:\a\_tasks\DxpDeployNuGetPackage_2bc993e5-c27c-4a24-aeaf-0fc403debc8d\2.9.6\DeployNuGetPackage.ps1:36 char:5

2024-10-25T15:04:58.3156520Z ##[error]+     $runBenchmark = [System.Convert]::ToBoolean($RunBenchmark)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : FormatException

2024-10-25T15:04:58.3158413Z ##[error]+     $runBenchmark = [System.Convert]::ToBoolean($RunBenchmark)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : FormatException
ovelartelius commented 1 week ago

Thanks for reporting this @walleboom. What Agent pool and agent specification are you using? Is it yaml or classic release pipeline you are using? Im asking because I have not been able to recreate this issue.

walleboom commented 1 week ago

Azure Pipelines, windows-latest in Classic Release PipelineOn 28 Oct 2024, at 14:41, Ove Lartelius @.***> wrote: Thanks for reporting this @walleboom. What Agent pool and agent specification are you using? Is it yaml or classic release pipeline you are using? Im asking because I have not been able to recreate this issue.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

ovelartelius commented 1 week ago

@walleboom Can´t see your comment. Can you please try again?

walleboom commented 1 week ago

Azure Pipelines, windows-latest in Classic 😊

ovelartelius commented 6 days ago

Strange! I just tried that and did not get any errors. But I have released a new version now. Can you do a new release and see if you get the same error? Make sure that you create a new release, otherwise it will still use the old version. If you get the same error, is it possible to get more information from the log for the task that fails? You can send it ove.lartelius@epinova.se if you don´t want to publish it here.