Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Can no longer push nuget packages to HTTP source #20724

Open
4 of 7 tasks
icnocop opened this issue Dec 11, 2024 · 0 comments
Open
4 of 7 tasks

[BUG]: Can no longer push nuget packages to HTTP source #20724

icnocop opened this issue Dec 11, 2024 · 0 comments
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug triage

Comments

@icnocop
Copy link

icnocop commented Dec 11, 2024

New issue checklist

Task name

DotNetCoreCLI

Task version

2

Issue Description

Hi.

When using the Classic pipeline to build, pack, and push a nuget package to an internal feed, I get the following error:

error: You are running the 'push' operation with an 'HTTP' source: http://MyAzureDevOpsServer/DefaultCollection/_packaging/12345678-1234-1234-1234-123456789012/nuget/v3/index.json. NuGet requires HTTPS sources. To use an HTTP source, you must explicitly set 'allowInsecureConnections' to true in your NuGet.Config file. Refer to https://aka.ms/nuget-https-everywhere for more information.

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

Azure DevOps Server (Please specify exact version in the textbox below)

Azure DevOps Server Version (if applicable)

Azure DevOps Server Version Dev17.M153.6

Operation system

Windows Server 2022

Relevant log output

2024-12-11T03:35:06.0584632Z ==============================================================================
2024-12-11T03:35:06.0584979Z Task         : .NET Core
2024-12-11T03:35:06.0585338Z Description  : Build, test, package, or publish a dotnet application, or run a custom dotnet command
2024-12-11T03:35:06.0585669Z Version      : 2.153.3
2024-12-11T03:35:06.0585904Z Author       : Microsoft Corporation
2024-12-11T03:35:06.0586282Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/dotnet-core-cli
2024-12-11T03:35:06.0586683Z ==============================================================================
2024-12-11T03:35:06.7881998Z [command]C:\Windows\system32\chcp.com 65001
2024-12-11T03:35:06.7986632Z Active code page: 65001
2024-12-11T03:35:06.8143966Z SYSTEMVSSCONNECTION exists true
2024-12-11T03:35:07.7130897Z ##[warning]Can\'t find loc string for key: Warning_SessionCreationFailed
2024-12-11T03:35:07.7144062Z ##[warning]Warning_SessionCreationFailed {"statusCode":500,"result":{"$id":"1","innerException":null,"message":"Failed to read storage account information : Failed to retrieve settings required for storage account information from strongbox. Both StorageAccountKeyBaseName and StorageAccountCount are needed.","typeName":"Microsoft.VisualStudio.Services.Content.Server.Azure.CannotReadStorageAccountException, Microsoft.VisualStudio.Services.Content.Server.Azure","typeKey":"CannotReadStorageAccountException","errorCode":0,"eventId":0}}
2024-12-11T03:35:07.7196269Z Saving NuGet.config to a temporary config file.
2024-12-11T03:35:07.7250402Z Saving NuGet.config to a temporary config file.
2024-12-11T03:35:07.7312272Z [command]c:\agent\_work\_tool\dotnet\dotnet.exe nuget push c:\agent\_work\1\s\.nuget\MyNuGetPackage.nupkg --source http://MyAzureDevOpsServer/DefaultCollection/_packaging/12345678-1234-1234-1234-123456789012/nuget/v3/index.json --api-key VSTS
2024-12-11T03:35:08.2636203Z error: You are running the 'push' operation with an 'HTTP' source: http://MyAzureDevOpsServer/DefaultCollection/_packaging/12345678-1234-1234-1234-123456789012/nuget/v3/index.json. NuGet requires HTTPS sources. To use an HTTP source, you must explicitly set 'allowInsecureConnections' to true in your NuGet.Config file. Refer to https://aka.ms/nuget-https-everywhere for more information.
2024-12-11T03:35:08.3085208Z ##[error]Error: The process 'c:\agent\_work\_tool\dotnet\dotnet.exe' failed with exit code 1
2024-12-11T03:35:08.3087819Z ##[error]Packages failed to publish
2024-12-11T03:35:08.3181497Z ##[section]Finishing: dotnet push

Full task logs with system.debug enabled

2024-12-11T04:30:34.6064056Z ##[debug]Evaluating condition for step: 'dotnet push'
2024-12-11T04:30:34.6066266Z ##[debug]Evaluating: succeeded()
2024-12-11T04:30:34.6066839Z ##[debug]Evaluating succeeded:
2024-12-11T04:30:34.6067975Z ##[debug]=> True
2024-12-11T04:30:34.6068613Z ##[debug]Result: True
2024-12-11T04:30:34.6069358Z ##[section]Starting: dotnet push
2024-12-11T04:30:34.6190226Z ==============================================================================
2024-12-11T04:30:34.6190565Z Task : .NET Core
2024-12-11T04:30:34.6190918Z Description : Build, test, package, or publish a dotnet application, or run a custom dotnet command
2024-12-11T04:30:34.6191259Z Version : 2.153.3
2024-12-11T04:30:34.6191493Z Author : Microsoft Corporation
2024-12-11T04:30:34.6191848Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/dotnet-core-cli
2024-12-11T04:30:34.6192256Z ==============================================================================
2024-12-11T04:30:34.6257803Z ##[debug]Using node path: c:\agent\externals\node\bin\node.exe
2024-12-11T04:30:34.8834764Z ##[debug]agent.TempDirectory=c:\agent_work_temp
2024-12-11T04:30:34.8871569Z ##[debug]loading inputs and endpoints
2024-12-11T04:30:34.8878046Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2024-12-11T04:30:34.8893068Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2024-12-11T04:30:34.8897778Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2024-12-11T04:30:34.8900699Z ##[debug]loading INPUT_COMMAND
2024-12-11T04:30:34.8903337Z ##[debug]loading INPUT_CONFIGURATIONTOPACK
2024-12-11T04:30:34.8906177Z ##[debug]loading INPUT_FEEDPUBLISH
2024-12-11T04:30:34.8908672Z ##[debug]loading INPUT_INCLUDENUGETORG
2024-12-11T04:30:34.8910894Z ##[debug]loading INPUT_INCLUDESOURCE
2024-12-11T04:30:34.8913265Z ##[debug]loading INPUT_INCLUDESYMBOLS
2024-12-11T04:30:34.8915596Z ##[debug]loading INPUT_MODIFYOUTPUTPATH
2024-12-11T04:30:34.8917806Z ##[debug]loading INPUT_NOBUILD
2024-12-11T04:30:34.8920101Z ##[debug]loading INPUT_NOCACHE
2024-12-11T04:30:34.8922435Z ##[debug]loading INPUT_NUGETCONFIGPATH
2024-12-11T04:30:34.8925297Z ##[debug]loading INPUT_NUGETFEEDTYPE
2024-12-11T04:30:34.8927629Z ##[debug]loading INPUT_OUTPUTDIR
2024-12-11T04:30:34.8930043Z ##[debug]loading INPUT_PUBLISHPACKAGEMETADATA
2024-12-11T04:30:34.8932489Z ##[debug]loading INPUT_PUBLISHTESTRESULTS
2024-12-11T04:30:34.8934789Z ##[debug]loading INPUT_PUBLISHWEBPROJECTS
2024-12-11T04:30:34.8937025Z ##[debug]loading INPUT_REQUESTEDMAJORVERSION
2024-12-11T04:30:34.8939354Z ##[debug]loading INPUT_REQUESTEDMINORVERSION
2024-12-11T04:30:34.8941860Z ##[debug]loading INPUT_REQUESTEDPATCHVERSION
2024-12-11T04:30:34.8944428Z ##[debug]loading INPUT_SEARCHPATTERNPACK
2024-12-11T04:30:34.8946617Z ##[debug]loading INPUT_SEARCHPATTERNPUSH
2024-12-11T04:30:34.8948831Z ##[debug]loading INPUT_SELECTORCONFIG
2024-12-11T04:30:34.8951253Z ##[debug]loading INPUT_VERBOSITYPACK
2024-12-11T04:30:34.8953517Z ##[debug]loading INPUT_VERBOSITYRESTORE
2024-12-11T04:30:34.8955747Z ##[debug]loading INPUT_VERSIONINGSCHEME
2024-12-11T04:30:34.8960013Z ##[debug]loading INPUT_WORKINGDIRECTORY
2024-12-11T04:30:34.8962640Z ##[debug]loading INPUT_ZIPAFTERPUBLISH
2024-12-11T04:30:34.8970853Z ##[debug]loaded 29
2024-12-11T04:30:34.8989733Z ##[debug]Agent.ProxyUrl=undefined
2024-12-11T04:30:34.8991349Z ##[debug]Agent.CAInfo=undefined
2024-12-11T04:30:34.8991865Z ##[debug]Agent.ClientCert=undefined
2024-12-11T04:30:34.8992343Z ##[debug]Agent.SkipCertValidation=undefined
2024-12-11T04:30:35.3450212Z ##[debug]command=push
2024-12-11T04:30:35.3453063Z ##[debug]projects=null
2024-12-11T04:30:35.3453549Z ##[debug]arguments=null
2024-12-11T04:30:35.3458109Z ##[debug]publishWebProjects=true
2024-12-11T04:30:35.3460415Z ##[debug]zipAfterPublish=true
2024-12-11T04:30:35.3463412Z ##[debug]workingDirectory=c:\agent_work\1\s
2024-12-11T04:30:35.3475497Z ##[debug]check path : c:\agent_work_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.153.3\task.json
2024-12-11T04:30:35.3477775Z ##[debug]adding resource file: c:\agent_work_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.153.3\task.json
2024-12-11T04:30:35.3478492Z ##[debug]system.culture=en-US
2024-12-11T04:30:35.3542642Z ##[debug]which 'C:\Windows\system32\chcp.com'
2024-12-11T04:30:35.3551105Z ##[debug]found: 'C:\Windows\system32\chcp.com'
2024-12-11T04:30:35.3552015Z ##[debug]which 'C:\Windows\system32\chcp.com'
2024-12-11T04:30:35.3552875Z ##[debug]found: 'C:\Windows\system32\chcp.com'
2024-12-11T04:30:35.3558148Z ##[debug]C:\Windows\system32\chcp.com arg: ["65001"]
2024-12-11T04:30:35.3558801Z ##[debug]C:\Windows\system32\chcp.com arg: ["65001"]
2024-12-11T04:30:35.3563338Z ##[debug]exec tool: C:\Windows\system32\chcp.com
2024-12-11T04:30:35.3563924Z ##[debug]exec tool: C:\Windows\system32\chcp.com
2024-12-11T04:30:35.3564403Z ##[debug]arguments:
2024-12-11T04:30:35.3564843Z ##[debug]arguments:
2024-12-11T04:30:35.3565279Z ##[debug] 65001
2024-12-11T04:30:35.3565696Z ##[debug] 65001
2024-12-11T04:30:35.3574377Z [command]C:\Windows\system32\chcp.com 65001
2024-12-11T04:30:35.3683553Z Active code page: 65001
2024-12-11T04:30:35.3704035Z ##[debug]Getting Packaging service access points
2024-12-11T04:30:35.3705117Z ##[debug]System.TeamFoundationCollectionUri=http://MyAzureDevOpsServer/DefaultCollection/
2024-12-11T04:30:35.3705863Z ##[debug]System.ServerType=OnPremises
2024-12-11T04:30:35.3721730Z ##[debug]searchPatternPush=c:\agent_work\1\s.nuget*.nupkg
2024-12-11T04:30:35.3730544Z ##[debug]system.defaultWorkingDirectory=c:\agent_work\1\s
2024-12-11T04:30:35.3731168Z ##[debug]defaultRoot: 'c:\agent_work\1\s'
2024-12-11T04:30:35.3731984Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'undefined'
2024-12-11T04:30:35.3732692Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'undefined'
2024-12-11T04:30:35.3733294Z ##[debug]findOptions.followSymbolicLinks: 'undefined'
2024-12-11T04:30:35.3734039Z ##[debug]matchOptions.debug: 'undefined'
2024-12-11T04:30:35.3734596Z ##[debug]matchOptions.nobrace: 'undefined'
2024-12-11T04:30:35.3735180Z ##[debug]matchOptions.noglobstar: 'undefined'
2024-12-11T04:30:35.3735787Z ##[debug]matchOptions.dot: 'undefined'
2024-12-11T04:30:35.3736290Z ##[debug]matchOptions.noext: 'undefined'
2024-12-11T04:30:35.3736809Z ##[debug]matchOptions.nocase: 'undefined'
2024-12-11T04:30:35.3737550Z ##[debug]matchOptions.nonull: 'undefined'
2024-12-11T04:30:35.3738083Z ##[debug]matchOptions.matchBase: 'undefined'
2024-12-11T04:30:35.3738614Z ##[debug]matchOptions.nocomment: 'undefined'
2024-12-11T04:30:35.3739436Z ##[debug]matchOptions.nonegate: 'undefined'
2024-12-11T04:30:35.3739963Z ##[debug]matchOptions.flipNegate: 'undefined'
2024-12-11T04:30:35.3740533Z ##[debug]pattern: 'c:\agent_work\1\s.nuget*.nupkg'
2024-12-11T04:30:35.3741032Z ##[debug]expanding braces
2024-12-11T04:30:35.3743341Z ##[debug]pattern: 'c:/agent/_work/1/s/.nuget/*.nupkg'
2024-12-11T04:30:35.3778306Z ##[debug]findPath: 'c:\agent_work\1\s.nuget'
2024-12-11T04:30:35.3778869Z ##[debug]statOnly: 'false'
2024-12-11T04:30:35.3782063Z ##[debug]findPath: 'c:\agent_work\1\s.nuget'
2024-12-11T04:30:35.3782657Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'undefined'
2024-12-11T04:30:35.3783260Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'undefined'
2024-12-11T04:30:35.3783925Z ##[debug]findOptions.followSymbolicLinks: 'undefined'
2024-12-11T04:30:35.3790040Z ##[debug] c:\agent_work\1\s.nuget (directory)
2024-12-11T04:30:35.3796761Z ##[debug] c:\agent_work\1\s.nuget\MyNuGetPackage.nupkg (file)
2024-12-11T04:30:35.3797630Z ##[debug] c:\agent_work\1\s.nuget\MyNuGetPackage.snupkg (file)
2024-12-11T04:30:35.3802488Z ##[debug]2 results
2024-12-11T04:30:35.3802922Z ##[debug]found 2 paths
2024-12-11T04:30:35.3803368Z ##[debug]applying include pattern
2024-12-11T04:30:35.3815039Z ##[debug]1 matches
2024-12-11T04:30:35.3816641Z ##[debug]1 final results
2024-12-11T04:30:35.3823261Z ##[debug]nuGetFeedType=internal
2024-12-11T04:30:35.3826445Z ##[debug]SYSTEMVSSCONNECTION=http://MyAzureDevOpsServer/DefaultCollection/
2024-12-11T04:30:35.3827732Z ##[debug]discovered URL prefixes: http://MyAzureDevOpsServer/DefaultCollection/
2024-12-11T04:30:35.3828370Z ##[debug]DotNetCoreCLITask.ExtraUrlPrefixesForTesting=undefined
2024-12-11T04:30:35.3828931Z ##[debug]Getting credentials for local feeds
2024-12-11T04:30:35.3850242Z SYSTEMVSSCONNECTION exists true
2024-12-11T04:30:35.3850747Z ##[debug]SYSTEMVSSCONNECTION exists true
2024-12-11T04:30:35.3851222Z ##[debug]Got auth token
2024-12-11T04:30:35.3852991Z ##[debug]NuGetTasks.IsHostedTestEnvironment=undefined
2024-12-11T04:30:35.3853538Z ##[debug]System.ServerType=OnPremises
2024-12-11T04:30:35.3854107Z ##[debug]Push to internal OnPrem server detected. Credential configuration will be skipped.
2024-12-11T04:30:35.3854710Z ##[debug]Agent.BuildDirectory=c:\agent_work\1
2024-12-11T04:30:35.3855232Z ##[debug]build.buildId=1
2024-12-11T04:30:35.3857964Z ##[debug]testing directory 'c:\agent_work\1\NuGet_1'
2024-12-11T04:30:35.3860067Z ##[debug]testing directory 'c:\agent_work\1'
2024-12-11T04:30:35.3860898Z ##[debug]mkdir 'c:\agent_work\1\NuGet_1'
2024-12-11T04:30:35.3869110Z ##[debug]feedPublish=/12345678-1234-1234-1234-123456789012
2024-12-11T04:30:35.3874484Z ##[debug]NuGet.OverwritePackagingCollectionUrl=undefined
2024-12-11T04:30:35.3880365Z ##[debug]Getting registry url from http://MyAzureDevOpsServer/DefaultCollection/
2024-12-11T04:30:35.3883452Z ##[debug]Agent.ProxyUrl=undefined
2024-12-11T04:30:35.3919642Z ##[debug]publishPackageMetadata=true
2024-12-11T04:30:35.3920446Z ##[debug]Packaging.SavePublishMetadata=undefined
2024-12-11T04:30:35.3921345Z ##[debug]Creating provenance session to save pipeline metadata. This can be disabled in the task settings, or by setting build variable Packaging.SavePublishMetadata to false
2024-12-11T04:30:35.3925112Z ##[debug]Release.ReleaseId=undefined
2024-12-11T04:30:35.3925629Z ##[debug]Build.BuildId=1
2024-12-11T04:30:35.3927321Z ##[debug]System.CollectionId=12345678-1234-1234-1234-123456789012
2024-12-11T04:30:35.3927880Z ##[debug]System.DefinitionId=1
2024-12-11T04:30:35.3928392Z ##[debug]System.TeamProjectId=12345678-1234-1234-1234-123456789012
2024-12-11T04:30:35.3928919Z ##[debug]Build.BuildNumber=1
2024-12-11T04:30:35.3929463Z ##[debug]Build.DefinitionName=MySolutionFolder
2024-12-11T04:30:35.3929993Z ##[debug]Build.Repository.Name=MyRepositoryName
2024-12-11T04:30:35.3936577Z ##[debug]Build.Repository.Provider=TfsVersionControl
2024-12-11T04:30:35.3942879Z ##[debug]Build.Repository.Id=$/
2024-12-11T04:30:35.3943674Z ##[debug]Build.Repository.Uri=http://MyAzureDevOpsServer/DefaultCollection/
2024-12-11T04:30:35.3978871Z ##[debug]Build.SourceBranch=$/MyRepositoryName/dev/MySolutionFolder
2024-12-11T04:30:35.3979925Z ##[debug]Build.SourceBranchName=MySolutionFolder
2024-12-11T04:30:35.3980649Z ##[debug]Build.SourceVersion=1
2024-12-11T04:30:35.4595239Z ##[warning]Can't find loc string for key: Warning_SessionCreationFailed
2024-12-11T04:30:35.4605943Z ##[debug]Processed: ##vso[task.issue type=warning;]Can't find loc string for key: Warning_SessionCreationFailed
2024-12-11T04:30:35.4609414Z ##[warning]Warning_SessionCreationFailed {"statusCode":500,"result":{"$id":"1","innerException":null,"message":"Failed to read storage account information : Failed to retrieve settings required for storage account information from strongbox. Both StorageAccountKeyBaseName and StorageAccountCount are needed.","typeName":"Microsoft.VisualStudio.Services.Content.Server.Azure.CannotReadStorageAccountException, Microsoft.VisualStudio.Services.Content.Server.Azure","typeKey":"CannotReadStorageAccountException","errorCode":0,"eventId":0}}
2024-12-11T04:30:35.4612569Z ##[debug]Processed: ##vso[task.issue type=warning;]Warning_SessionCreationFailed {"statusCode":500,"result":{"$id":"1","innerException":null,"message":"Failed to read storage account information : Failed to retrieve settings required for storage account information from strongbox. Both StorageAccountKeyBaseName and StorageAccountCount are needed.","typeName":"Microsoft.VisualStudio.Services.Content.Server.Azure.CannotReadStorageAccountException, Microsoft.VisualStudio.Services.Content.Server.Azure","typeKey":"CannotReadStorageAccountException","errorCode":0,"eventId":0}}
2024-12-11T04:30:35.4668918Z ##[debug]Feed registry url: http://MyAzureDevOpsServer/DefaultCollection/_packaging/12345678-1234-1234-1234-123456789012/nuget/v3/index.json
2024-12-11T04:30:35.4671333Z ##[debug]Adding sources to nuget.config
2024-12-11T04:30:35.4672973Z Saving NuGet.config to a temporary config file.
2024-12-11T04:30:35.4724168Z ##[debug]Setting auth in the temp nuget.config
2024-12-11T04:30:35.4724759Z Saving NuGet.config to a temporary config file.
2024-12-11T04:30:35.4729680Z ##[debug]Getting sources from NuGet.config in this location: c:\agent_work\1\NuGet_1\nuget.config
2024-12-11T04:30:35.4741393Z ##[debug]which 'dotnet'
2024-12-11T04:30:35.4754867Z ##[debug]found: 'c:\agent_work_tool\dotnet\dotnet.exe'
2024-12-11T04:30:35.4755492Z ##[debug]which 'dotnet'
2024-12-11T04:30:35.4765170Z ##[debug]found: 'c:\agent_work_tool\dotnet\dotnet.exe'
2024-12-11T04:30:35.4767101Z ##[debug]which 'c:\agent_work_tool\dotnet\dotnet.exe'
2024-12-11T04:30:35.4768666Z ##[debug]found: 'c:\agent_work_tool\dotnet\dotnet.exe'
2024-12-11T04:30:35.4769396Z ##[debug]which 'c:\agent_work_tool\dotnet\dotnet.exe'
2024-12-11T04:30:35.4771601Z ##[debug]found: 'c:\agent_work_tool\dotnet\dotnet.exe'
2024-12-11T04:30:35.4773511Z ##[debug]c:\agent_work_tool\dotnet\dotnet.exe arg: nuget
2024-12-11T04:30:35.4774307Z ##[debug]c:\agent_work_tool\dotnet\dotnet.exe arg: push
2024-12-11T04:30:35.4775321Z ##[debug]c:\agent_work_tool\dotnet\dotnet.exe arg: c:\agent_work\1\s.nuget\MyNuGetPackage.nupkg
2024-12-11T04:30:35.4776746Z ##[debug]c:\agent_work_tool\dotnet\dotnet.exe arg: --source
2024-12-11T04:30:35.4777805Z ##[debug]c:\agent_work_tool\dotnet\dotnet.exe arg: http://MyAzureDevOpsServer/DefaultCollection/_packaging/12345678-1234-1234-1234-123456789012/nuget/v3/index.json
2024-12-11T04:30:35.4778803Z ##[debug]c:\agent_work_tool\dotnet\dotnet.exe arg: --api-key
2024-12-11T04:30:35.4779968Z ##[debug]c:\agent_work_tool\dotnet\dotnet.exe arg: VSTS
2024-12-11T04:30:35.4781331Z ##[debug]agent.proxyurl=undefined
2024-12-11T04:30:35.4781903Z ##[debug]agent.proxyusername=undefined
2024-12-11T04:30:35.4784982Z ##[debug]agent.proxypassword=undefined
2024-12-11T04:30:35.4790911Z ##[debug]exec tool: c:\agent_work_tool\dotnet\dotnet.exe
2024-12-11T04:30:35.4791487Z ##[debug]arguments:
2024-12-11T04:30:35.4791928Z ##[debug] nuget
2024-12-11T04:30:35.4792334Z ##[debug] push
2024-12-11T04:30:35.4792942Z ##[debug] c:\agent_work\1\s.nuget\MyNuGetPackage.nupkg
2024-12-11T04:30:35.4793556Z ##[debug] --source
2024-12-11T04:30:35.4794134Z ##[debug] http://MyAzureDevOpsServer/DefaultCollection/_packaging/12345678-1234-1234-1234-123456789012/nuget/v3/index.json
2024-12-11T04:30:35.4794814Z ##[debug] --api-key
2024-12-11T04:30:35.4795248Z ##[debug] VSTS
2024-12-11T04:30:35.4796173Z [command]c:\agent_work_tool\dotnet\dotnet.exe nuget push c:\agent_work\1\s.nuget\MyNuGetPackage.nupkg --source http://MyAzureDevOpsServer/DefaultCollection/_packaging/12345678-1234-1234-1234-123456789012/nuget/v3/index.json --api-key VSTS
2024-12-11T04:30:36.0112124Z error: You are running the 'push' operation with an 'HTTP' source: http://MyAzureDevOpsServer/DefaultCollection/_packaging/12345678-1234-1234-1234-123456789012/nuget/v3/index.json. NuGet requires HTTPS sources. To use an HTTP source, you must explicitly set 'allowInsecureConnections' to true in your NuGet.Config file. Refer to https://aka.ms/nuget-https-everywhere for more information.
2024-12-11T04:30:36.0500160Z ##[debug]Exit code 1 received from tool 'c:\agent_work_tool\dotnet\dotnet.exe'
2024-12-11T04:30:36.0507515Z ##[debug]STDIO streams have closed for tool 'c:\agent_work_tool\dotnet\dotnet.exe'
2024-12-11T04:30:36.0534209Z ##[debug]rm -rf c:\agent_work\1\NuGet_1
2024-12-11T04:30:36.0535641Z ##[debug]removing directory
2024-12-11T04:30:36.0557310Z ##[error]Error: The process 'c:\agent_work_tool\dotnet\dotnet.exe' failed with exit code 1
2024-12-11T04:30:36.0559656Z ##[debug]Processed: ##vso[task.issue type=error;]Error: The process 'c:\agent_work_tool\dotnet\dotnet.exe' failed with exit code 1
2024-12-11T04:30:36.0560576Z ##[debug]task result: Failed
2024-12-11T04:30:36.0561395Z ##[error]Packages failed to publish
2024-12-11T04:30:36.0563411Z ##[debug]Processed: ##vso[task.issue type=error;]Packages failed to publish
2024-12-11T04:30:36.0565662Z ##[debug]Processed: ##vso[task.complete result=Failed;]Packages failed to publish
2024-12-11T04:30:36.0652643Z ##[section]Finishing: dotnet push

Repro steps

pool:
  name: Build - Visual Studio 2022
steps:
- task: UseDotNet@2
  displayName: 'Use dotnet'
  inputs:
    version: 9.0.x
    performMultiLevelLookup: true

- task: DotNetCoreCLI@2
  displayName: 'dotnet pack'
  inputs:
    command: pack
    packagesToPack: MySolution.sln
    configuration: Release
    packDirectory: .nuget
    includesymbols: true
    versioningScheme: byPrereleaseNumber

- task: DotNetCoreCLI@2
  displayName: 'dotnet push'
  inputs:
    command: push
    packagesToPush: '.nuget\*.nupkg'
    publishVstsFeed: '/12345678-1234-1234-1234-123456789012'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug triage
Projects
None yet
Development

No branches or pull requests

2 participants