NuKeeperDotNet / NuKeeper

Automagically update nuget packages in .NET projects
Apache License 2.0
540 stars 128 forks source link

Azure DevOps pipeline using Bitbucket Cloud as repo doesn't detect repo url #1097

Closed ivokick closed 3 years ago

ivokick commented 3 years ago

🐛 Bug Report

Using the NuKeeper Azure DevOps extension. NuKeeper doesn't seem to detect the repo url when using a Bitbucket Cloud source in a Azure DevOps pipeline.

The command executed was: "C:\Program Files\dotnet\dotnet.exe" C:\hostedtoolcache\windows\nukeeper\0.26.0\x64\NuKeeper.dll repo D:\a\1\s *** --targetBranch origin/master -m 3 --consolidate --platform Bitbucket --include Blox.Full --change Patch --age 0

Actual behaviour

NuKeeperException: The provided uri was is not in the correct format. Provided file:///D:***@bitbucket.org/projectname/repositoryname.git

Expected behaviour

The repo url is correctly detected from the environment.

Configuration

image image

Log

2021-03-12T14:52:54.2905113Z ##[section]Starting: NuKeeper
2021-03-12T14:52:54.3023752Z ==============================================================================
2021-03-12T14:52:54.3024084Z Task         : NuKeeper
2021-03-12T14:52:54.3024334Z Description  : Version 0.4.43
2021-03-12T14:52:54.3024550Z Version      : 0.4.43
2021-03-12T14:52:54.3024786Z Author       : NuKeeper
2021-03-12T14:52:54.3025122Z Help         : For help please visit https://github.com/NuKeeperDotNet/NuKeeper
2021-03-12T14:52:54.3025518Z ==============================================================================
2021-03-12T14:52:55.0409549Z [command]C:\agents\2.183.1\externals\git\cmd\git.exe config --global user.name NuKeeper
2021-03-12T14:52:55.1360544Z [command]C:\agents\2.183.1\externals\git\cmd\git.exe config --global user.email nukeeper@nukeeper.com
2021-03-12T14:52:55.7577040Z Downloading: https://api.nuget.org/v3-flatcontainer/nukeeper/0.26.0/nukeeper.0.26.0.nupkg
2021-03-12T14:52:56.1728260Z Extracting archive
2021-03-12T14:52:56.1741967Z [command]C:\windows\system32\chcp.com 65001
2021-03-12T14:52:56.1772587Z Active code page: 65001
2021-03-12T14:52:56.2172765Z [command]C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\d4bc50c7-bdfe-4052-b48b-0b29fd68bd4e', 'D:\a\_temp\d4bc50c7-bdfe-4052-b48b-0b29fd68bd4e.unpacked')"
2021-03-12T14:52:57.5279597Z Caching tool: nukeeper 0.26.0 x64
2021-03-12T14:52:57.6272331Z [command]C:\hostedtoolcache\windows\nukeeper\0.26.0\x64\NuGet.exe sources add -name organisationalScoped -source https://pkgs.dev.azure.com/********/_packaging/61f1636a-ffff-aaaa-bbbb-9008c1f31988/nuget/v3/index.json -username nukeeper -password *** -configFile D:\a\1\NuGet.config
2021-03-12T14:52:59.9603013Z Package source with Name: organisationalScoped added successfully.
2021-03-12T14:52:59.9890863Z [command]"C:\Program Files\dotnet\dotnet.exe" C:\hostedtoolcache\windows\nukeeper\0.26.0\x64\NuKeeper.dll repo D:\a\1\s *** --targetBranch origin/master -m 3 --consolidate --platform Bitbucket --include Blox.Full --change Patch --age 0
2021-03-12T14:53:12.6884036Z 
2021-03-12T14:53:12.8804276Z Unhandled Exception: NuKeeper.Abstractions.NuKeeperException: The provided uri was is not in the correct format. Provided file:///D:***@bitbucket.org/projectname/repositoryname.git
2021-03-12T14:53:12.8806552Z    at NuKeeper.BitBucket.BitbucketSettingsReader.RepositorySettings(Uri repositoryUri, String targetBranch) in d:\a\r1\a\drop\NuKeeper.BitBucket\BitbucketSettingsReader.cs:line 54
2021-03-12T14:53:12.8809373Z    at NuKeeper.Commands.RepositoryCommand.PopulateSettings(SettingsContainer settings) in d:\a\r1\a\drop\NuKeeper\Commands\RepositoryCommand.cs:line 57
2021-03-12T14:53:12.8810318Z    at NuKeeper.Commands.CommandBase.OnExecute() in d:\a\r1\a\drop\NuKeeper\Commands\CommandBase.cs:line 96
2021-03-12T14:53:12.8811047Z    at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.InvokeAsync(MethodInfo method, Object instance, Object[] arguments)
2021-03-12T14:53:12.8811788Z    at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context, CancellationToken cancellationToken)
2021-03-12T14:53:12.8812483Z    at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<<Apply>b__0>d.MoveNext()
2021-03-12T14:53:12.8813048Z --- End of stack trace from previous location where exception was thrown ---
2021-03-12T14:53:12.8813640Z    at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
2021-03-12T14:53:12.8814352Z    at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
2021-03-12T14:53:12.8814929Z    at NuKeeper.Program.Main(String[] args) in d:\a\r1\a\drop\NuKeeper\Program.cs:line 33
2021-03-12T14:53:12.9688288Z ##[error]Error: The process 'C:\Program Files\dotnet\dotnet.exe' failed with exit code 3762504530
2021-03-12T14:53:12.9718834Z ##[section]Finishing: NuKeeper
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.