Authentication with the server has failed error when running Azure DevOps Pipeline

SonarQube Cloud

Version : 4.2.3

Getting the error bellow when running the Prepare Task. This is preventing the pipeline to run.

Starting: SonarCloudPrepare
==============================================================================

Task         : Prepare Analysis Configuration

Description  : Prepare SonarQube Cloud analysis configuration

Version      : 4.2.3

Author       : sonarsource

Help         : [More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/)

==============================================================================

[INFO]  SonarQube Cloud: Server version: 8.0.0.85682

[INFO]  SonarQube Cloud: Default branch of this repository is 'refs/heads/main'

D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\4.2.3\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe begin /k:smart-int-development_SmartDataLink /o:smart-int-development

SonarScanner for .NET 11.2.1

Using the .NET Framework version of the Scanner for .NET

Pre-processing started.

Preparing working directories...

08:07:28.224  Updating build integration targets...

08:07:28.440  WARNING: Authentication with the server has failed.

08:07:28.440  WARNING: In version 7 of the scanner, the default value for the sonar.host.url changed from "http://localhost:9000" to "https://sonarcloud.io".

If the intention was to connect to the local SonarQube instance, please add the parameter: /d:sonar.host.url="http://localhost:9000"

##[error]08:07:28.441  Pre-processing failed. Exit code: 1

08:07:28.441  Pre-processing failed. Exit code: 1

##[error][ERROR] SonarQube Cloud: Error while executing task Prepare: The process 'D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\4.2.3\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1

##[error]The process 'D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\4.2.3\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1

Finishing: SonarCloudPrepare
==============================================================================

Hi,

Can you add /d:sonar.verbose=true to the begin command and provide the resulting log from the end step?

 
Thx,
Ann

Hi Ann,

Please see the log of the pipeline run with the verbose added.

Thanks,

Ruben

2026-04-23T08:11:38.2154502Z ##[section]Starting: Job
2026-04-23T08:11:38.4324359Z ##[section]Starting: Initialize job
2026-04-23T08:11:38.4326936Z Agent name: 'Azure Pipelines 1'
2026-04-23T08:11:38.4327325Z Agent machine name: 'runnervm9vsm6'
2026-04-23T08:11:38.4327545Z Current agent version: '4.271.0'
2026-04-23T08:11:38.4347831Z ##[group]Runner Image Provisioner
2026-04-23T08:11:38.4348097Z Hosted Compute Agent
2026-04-23T08:11:38.4348262Z Version: 20260213.493
2026-04-23T08:11:38.4348447Z Commit: 5c115507f6dd24b8de37d8bbe0bb4509d0cc0fa3
2026-04-23T08:11:38.4348647Z Build Date: 2026-02-13T00:28:41Z
2026-04-23T08:11:38.4348844Z Worker ID: {81d78359-1ae6-4438-8451-780cff921e3d}
2026-04-23T08:11:38.4349026Z Azure Region: northeurope
2026-04-23T08:11:38.4349178Z ##[endgroup]
2026-04-23T08:11:38.4349335Z ##[group]_internal_runner_telemetry
2026-04-23T08:11:38.4349534Z ProcessLifetimeId: 1e071933-b6a9-433d-b11e-e63ca556d1f2
2026-04-23T08:11:38.4349719Z Azure Region: northeurope
2026-04-23T08:11:38.4349865Z ##[endgroup]
2026-04-23T08:11:38.4350058Z ##[group]Operating System
2026-04-23T08:11:38.4350215Z Microsoft Windows Server 2025
2026-04-23T08:11:38.4350370Z 10.0.26100
2026-04-23T08:11:38.4350509Z Datacenter
2026-04-23T08:11:38.4350650Z ##[endgroup]
2026-04-23T08:11:38.4350792Z ##[group]Runner Image
2026-04-23T08:11:38.4350953Z Image: windows-2025
2026-04-23T08:11:38.4351108Z Version: 20260413.84.1
2026-04-23T08:11:38.4351333Z Included Software: https://github.com/actions/runner-images/blob/win25/20260413.84/images/windows/Windows2025-Readme.md
2026-04-23T08:11:38.4351629Z Image Release: https://github.com/actions/runner-images/releases/tag/win25%2F20260413.84
2026-04-23T08:11:38.4351824Z ##[endgroup]
2026-04-23T08:11:38.4354344Z Current image version: '20260413.84.1'
2026-04-23T08:11:38.4837901Z Agent running as: 'VssAdministrator'
2026-04-23T08:11:38.4875059Z Prepare build directory.
2026-04-23T08:11:38.5071247Z Set build variables.
2026-04-23T08:11:38.5086391Z Download all required tasks.
2026-04-23T08:11:38.5152358Z Downloading task: SonarCloudPrepare (4.2.3)
2026-04-23T08:11:39.0313122Z Downloading task: DotNetCoreCLI (2.269.0)
2026-04-23T08:11:41.1053244Z Downloading task: SonarCloudAnalyze (4.2.3)
2026-04-23T08:11:41.9743814Z Downloading task: SonarCloudPublish (4.2.3)
2026-04-23T08:11:42.1584427Z Downloading task: PublishBuildArtifacts (1.268.0)
2026-04-23T08:11:42.7873551Z Checking job knob settings.
2026-04-23T08:11:42.7875745Z    Knob: DockerActionRetries = true Source: $(VSTSAGENT_DOCKER_ACTION_RETRIES) 
2026-04-23T08:11:42.7875916Z    Knob: AgentToolsDirectory = C:\hostedtoolcache\windows Source: ${AGENT_TOOLSDIRECTORY} 
2026-04-23T08:11:42.7876710Z    Knob: UseGitLongPaths = true Source: $(USE_GIT_LONG_PATHS) 
2026-04-23T08:11:42.7877539Z    Knob: UseNode24withHandlerData = True Source: $(DistributedTask.Agent.UseNode24withHandlerData) 
2026-04-23T08:11:42.7878464Z    Knob: EnableIssueSourceValidation = true Source: $(ENABLE_ISSUE_SOURCE_VALIDATION) 
2026-04-23T08:11:42.7878927Z    Knob: AgentEnablePipelineArtifactLargeChunkSize = true Source: $(AGENT_ENABLE_PIPELINEARTIFACT_LARGE_CHUNK_SIZE) 
2026-04-23T08:11:42.7880202Z    Knob: ContinueAfterCancelProcessTreeKillAttempt = true Source: $(VSTSAGENT_CONTINUE_AFTER_CANCEL_PROCESSTREEKILL_ATTEMPT) 
2026-04-23T08:11:42.7880562Z    Knob: ProcessHandlerSecureArguments = false Source: $(AZP_75787_ENABLE_NEW_LOGIC) 
2026-04-23T08:11:42.7880797Z    Knob: ProcessHandlerSecureArguments = false Source: $(AZP_75787_ENABLE_NEW_LOGIC_LOG) 
2026-04-23T08:11:42.7881054Z    Knob: ProcessHandlerTelemetry = true Source: $(AZP_75787_ENABLE_COLLECT) 
2026-04-23T08:11:42.7881322Z    Knob: UseNewNodeHandlerTelemetry = True Source: $(DistributedTask.Agent.USENEWNODEHANDLERTELEMETRY) 
2026-04-23T08:11:42.7881592Z    Knob: ProcessHandlerEnableNewLogic = true Source: $(AZP_75787_ENABLE_NEW_PH_LOGIC) 
2026-04-23T08:11:42.7882092Z    Knob: EnableResourceMonitorDebugOutput = true Source: $(AZP_ENABLE_RESOURCE_MONITOR_DEBUG_OUTPUT) 
2026-04-23T08:11:42.7884218Z    Knob: EnableResourceUtilizationWarnings = true Source: $(AZP_ENABLE_RESOURCE_UTILIZATION_WARNINGS) 
2026-04-23T08:11:42.7885536Z    Knob: IgnoreVSTSTaskLib = true Source: $(AZP_AGENT_IGNORE_VSTSTASKLIB) 
2026-04-23T08:11:42.7885775Z    Knob: FailJobWhenAgentDies = true Source: $(FAIL_JOB_WHEN_AGENT_DIES) 
2026-04-23T08:11:42.7885933Z    Knob: EnhancedWorkerCrashHandling = true Source: ${AZP_ENHANCED_WORKER_CRASH_HANDLING} 
2026-04-23T08:11:42.7886255Z    Knob: CheckForTaskDeprecation = true Source: $(AZP_AGENT_CHECK_FOR_TASK_DEPRECATION) 
2026-04-23T08:11:42.7886607Z    Knob: CheckIfTaskNodeRunnerIsDeprecated246 = True Source: $(DistributedTask.Agent.CheckIfTaskNodeRunnerIsDeprecated246) 
2026-04-23T08:11:42.7886894Z    Knob: UseNode20ToStartContainer = True Source: $(DistributedTask.Agent.UseNode20ToStartContainer) 
2026-04-23T08:11:42.7887298Z    Knob: EnableTimeoutLogFlushing = True Source: $(DistributedTask.Agent.EnableTimeoutLogFlushing) 
2026-04-23T08:11:42.7887883Z    Knob: LogTaskNameInUserAgent = true Source: $(AZP_AGENT_LOG_TASKNAME_IN_USERAGENT) 
2026-04-23T08:11:42.7888139Z    Knob: UseFetchFilterInCheckoutTask = true Source: $(AGENT_USE_FETCH_FILTER_IN_CHECKOUT_TASK) 
2026-04-23T08:11:42.7888440Z    Knob: Rosetta2Warning = true Source: $(ROSETTA2_WARNING) 
2026-04-23T08:11:42.7889309Z    Knob: AddForceCredentialsToGitCheckout = True Source: $(DistributedTask.Agent.AddForceCredentialsToGitCheckout) 
2026-04-23T08:11:42.7889709Z    Knob: AddForceCredentialsToGitCheckoutEnhanced = True Source: $(DistributedTask.Agent.AddForceCredentialsToGitCheckoutEnhanced) 
2026-04-23T08:11:42.7890168Z    Knob: UseLatestTfExe = True Source: $(DistributedTask.Agent.UseLatestTfExe) 
2026-04-23T08:11:42.7890414Z    Knob: UseSparseCheckoutInCheckoutTask = true Source: $(AGENT_USE_SPARSE_CHECKOUT_IN_CHECKOUT_TASK) 
2026-04-23T08:11:42.7890750Z    Knob: AgentCDNConnectivityFailWarning = False Source: $(DistributedTask.Agent.AgentCDNConnectivityFailWarning) 
2026-04-23T08:11:42.7890992Z    Knob: UseEnhancedLogging = true Source: ${AZP_USE_ENHANCED_LOGGING} 
2026-04-23T08:11:42.7891357Z Finished checking job knob settings.
2026-04-23T08:11:42.8146584Z Start tracking orphan processes.
2026-04-23T08:11:42.8184155Z ##[section]Finishing: Initialize job
2026-04-23T08:11:42.8254624Z ##[section]Async Command Start: DetectDockerContainer
2026-04-23T08:11:42.8255105Z ##[section]Async Command End: DetectDockerContainer
2026-04-23T08:11:42.8256005Z ##[section]Async Command Start: DetectDockerContainer
2026-04-23T08:11:42.8256174Z ##[section]Async Command End: DetectDockerContainer
2026-04-23T08:11:42.8450060Z ##[section]Starting: Checkout SmartDataLink@feature-fix-yaml-build-pipeline to s
2026-04-23T08:11:42.8546323Z ==============================================================================
2026-04-23T08:11:42.8546870Z Task         : Get sources
2026-04-23T08:11:42.8547069Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2026-04-23T08:11:42.8547169Z Version      : 1.0.0
2026-04-23T08:11:42.8547337Z Author       : Microsoft
2026-04-23T08:11:42.8547552Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2026-04-23T08:11:42.8547649Z ==============================================================================
2026-04-23T08:11:43.1668166Z Syncing repository: SmartDataLink (Git)
2026-04-23T08:11:43.1714738Z Prepending Path environment variable with directory containing 'git.exe'.
2026-04-23T08:11:43.1761612Z ##[command]git version
2026-04-23T08:11:43.3197516Z git version 2.53.0.windows.1
2026-04-23T08:11:43.3256243Z ##[command]git lfs version
2026-04-23T08:11:43.4973404Z git-lfs/3.4.0 (GitHub; windows amd64; go 1.20.6; git d06d6e9e)
2026-04-23T08:11:43.5648423Z ##[command]git init "D:\a\1\s"
2026-04-23T08:11:43.6981873Z Initialized empty Git repository in D:/a/1/s/.git/
2026-04-23T08:11:43.7196818Z ##[command]git remote add origin https://smart-int-development.visualstudio.com/SmartDataLink/_git/SmartDataLink
2026-04-23T08:11:43.8284099Z ##[command]git sparse-checkout disable
2026-04-23T08:11:43.9445726Z ##[command]git config gc.auto 0
2026-04-23T08:11:43.9524134Z ##[command]git config core.longpaths true
2026-04-23T08:11:45.7028435Z ##[command]git config --get-all http.https://smart-int-development.visualstudio.com/SmartDataLink/_git/SmartDataLink.extraheader
2026-04-23T08:11:45.7063953Z ##[command]git config --get-all http.extraheader
2026-04-23T08:11:45.7124368Z ##[command]git config --get-regexp .*extraheader
2026-04-23T08:11:45.7530264Z ##[command]git config --get-all http.proxy
2026-04-23T08:11:45.7544198Z ##[command]git config http.version HTTP/1.1
2026-04-23T08:11:45.7558820Z ##[command]git config --get-all remote.origin.promisor
2026-04-23T08:11:45.8109392Z ##[command]git config --get-all remote.origin.partialclonefilter
2026-04-23T08:11:45.8545198Z ##[command]git --config-env=http.extraheader=env_var_http.extraheader fetch --force --tags --prune --prune-tags --progress --no-recurse-submodules origin --depth=1  +ecd52b0f0061f53e723dcacd29bc0ac066d325aa:refs/remotes/origin/ecd52b0f0061f53e723dcacd29bc0ac066d325aa
2026-04-23T08:11:46.5448316Z remote: Azure Repos        
2026-04-23T08:11:46.6476462Z remote: 
2026-04-23T08:11:46.6477437Z remote: Found 119 objects to send. (104 ms)        
2026-04-23T08:11:46.6869926Z Receiving objects:   0% (1/119)
2026-04-23T08:11:46.6893051Z Receiving objects:   1% (2/119)
2026-04-23T08:11:46.6894636Z Receiving objects:   2% (3/119)
2026-04-23T08:11:46.6896477Z Receiving objects:   3% (4/119)
2026-04-23T08:11:46.6897741Z Receiving objects:   4% (5/119)
2026-04-23T08:11:46.6899865Z Receiving objects:   5% (6/119)
2026-04-23T08:11:46.6918500Z Receiving objects:   6% (8/119)
2026-04-23T08:11:46.6923826Z Receiving objects:   7% (9/119)
2026-04-23T08:11:46.6924813Z Receiving objects:   8% (10/119)
2026-04-23T08:11:46.6931947Z Receiving objects:   9% (11/119)
2026-04-23T08:11:46.6935849Z Receiving objects:  10% (12/119)
2026-04-23T08:11:46.6945311Z Receiving objects:  11% (14/119)
2026-04-23T08:11:46.6953719Z Receiving objects:  12% (15/119)
2026-04-23T08:11:46.6968357Z Receiving objects:  13% (16/119)
2026-04-23T08:11:46.6978712Z Receiving objects:  14% (17/119)
2026-04-23T08:11:46.6990710Z Receiving objects:  15% (18/119)
2026-04-23T08:11:46.7000292Z Receiving objects:  16% (20/119)
2026-04-23T08:11:46.7014392Z Receiving objects:  17% (21/119)
2026-04-23T08:11:46.7021949Z Receiving objects:  18% (22/119)
2026-04-23T08:11:46.7039965Z Receiving objects:  19% (23/119)
2026-04-23T08:11:46.7077235Z Receiving objects:  20% (24/119)
2026-04-23T08:11:46.7103197Z Receiving objects:  21% (25/119)
2026-04-23T08:11:46.7127718Z Receiving objects:  22% (27/119)
2026-04-23T08:11:46.7152229Z Receiving objects:  23% (28/119)
2026-04-23T08:11:46.7177494Z Receiving objects:  24% (29/119)
2026-04-23T08:11:46.7188123Z Receiving objects:  25% (30/119)
2026-04-23T08:11:46.7215654Z Receiving objects:  26% (31/119)
2026-04-23T08:11:46.7219134Z Receiving objects:  27% (33/119)
2026-04-23T08:11:46.7220077Z Receiving objects:  28% (34/119)
2026-04-23T08:11:46.7226672Z Receiving objects:  29% (35/119)
2026-04-23T08:11:46.7233928Z Receiving objects:  30% (36/119)
2026-04-23T08:11:46.7260012Z Receiving objects:  31% (37/119)
2026-04-23T08:11:46.7262856Z Receiving objects:  32% (39/119)
2026-04-23T08:11:46.7270337Z Receiving objects:  33% (40/119)
2026-04-23T08:11:46.7301946Z Receiving objects:  34% (41/119)
2026-04-23T08:11:46.7303892Z Receiving objects:  35% (42/119)
2026-04-23T08:11:46.7307211Z Receiving objects:  36% (43/119)
2026-04-23T08:11:46.7310216Z Receiving objects:  37% (45/119)
2026-04-23T08:11:46.7342029Z Receiving objects:  38% (46/119)
2026-04-23T08:11:46.7369039Z Receiving objects:  39% (47/119)
2026-04-23T08:11:46.7400149Z Receiving objects:  40% (48/119)
2026-04-23T08:11:46.7430471Z Receiving objects:  41% (49/119)
2026-04-23T08:11:46.7454297Z Receiving objects:  42% (50/119)
2026-04-23T08:11:46.7468663Z Receiving objects:  43% (52/119)
2026-04-23T08:11:46.7483239Z Receiving objects:  44% (53/119)
2026-04-23T08:11:46.7518361Z Receiving objects:  45% (54/119)
2026-04-23T08:11:46.7545387Z Receiving objects:  46% (55/119)
2026-04-23T08:11:46.7572991Z Receiving objects:  47% (56/119)
2026-04-23T08:11:46.7594441Z Receiving objects:  48% (58/119)
2026-04-23T08:11:46.7596942Z Receiving objects:  49% (59/119)
2026-04-23T08:11:46.7598458Z Receiving objects:  50% (60/119)
2026-04-23T08:11:46.7600976Z Receiving objects:  51% (61/119)
2026-04-23T08:11:46.7602231Z Receiving objects:  52% (62/119)
2026-04-23T08:11:46.7607286Z Receiving objects:  53% (64/119)
2026-04-23T08:11:46.7630091Z Receiving objects:  54% (65/119)
2026-04-23T08:11:46.7631592Z Receiving objects:  55% (66/119)
2026-04-23T08:11:46.7638328Z Receiving objects:  56% (67/119)
2026-04-23T08:11:46.7651919Z Receiving objects:  57% (68/119)
2026-04-23T08:11:46.7664444Z Receiving objects:  58% (70/119)
2026-04-23T08:11:46.7672901Z Receiving objects:  59% (71/119)
2026-04-23T08:11:46.7683098Z Receiving objects:  60% (72/119)
2026-04-23T08:11:46.7701046Z Receiving objects:  61% (73/119)
2026-04-23T08:11:46.7705427Z Receiving objects:  62% (74/119)
2026-04-23T08:11:46.7706363Z Receiving objects:  63% (75/119)
2026-04-23T08:11:46.7719981Z Receiving objects:  64% (77/119)
2026-04-23T08:11:46.7728089Z Receiving objects:  65% (78/119)
2026-04-23T08:11:46.7747826Z Receiving objects:  66% (79/119)
2026-04-23T08:11:46.7754879Z Receiving objects:  67% (80/119)
2026-04-23T08:11:46.7785619Z Receiving objects:  68% (81/119)
2026-04-23T08:11:46.7809341Z Receiving objects:  69% (83/119)
2026-04-23T08:11:46.7844283Z Receiving objects:  70% (84/119)
2026-04-23T08:11:46.7871101Z Receiving objects:  71% (85/119)
2026-04-23T08:11:46.7900253Z Receiving objects:  72% (86/119)
2026-04-23T08:11:46.7917728Z Receiving objects:  73% (87/119)
2026-04-23T08:11:46.7919876Z Receiving objects:  74% (89/119)
2026-04-23T08:11:46.7922442Z Receiving objects:  75% (90/119)
2026-04-23T08:11:46.7924865Z Receiving objects:  76% (91/119)
2026-04-23T08:11:46.7926595Z Receiving objects:  77% (92/119)
2026-04-23T08:11:46.7927736Z Receiving objects:  78% (93/119)
2026-04-23T08:11:46.7938457Z Receiving objects:  79% (95/119)
2026-04-23T08:11:46.7965981Z Receiving objects:  80% (96/119)
2026-04-23T08:11:46.7976519Z Receiving objects:  81% (97/119)
2026-04-23T08:11:46.7993224Z Receiving objects:  82% (98/119)
2026-04-23T08:11:46.8025091Z Receiving objects:  83% (99/119)
2026-04-23T08:11:46.8045491Z Receiving objects:  84% (100/119)
2026-04-23T08:11:46.8046438Z Receiving objects:  85% (102/119)
2026-04-23T08:11:46.8048127Z Receiving objects:  86% (103/119)
2026-04-23T08:11:46.8048519Z Receiving objects:  87% (104/119)
2026-04-23T08:11:46.8049635Z Receiving objects:  88% (105/119)
2026-04-23T08:11:46.8050662Z Receiving objects:  89% (106/119)
2026-04-23T08:11:46.8051533Z Receiving objects:  90% (108/119)
2026-04-23T08:11:46.8052243Z Receiving objects:  91% (109/119)
2026-04-23T08:11:46.8053424Z Receiving objects:  92% (110/119)
2026-04-23T08:11:46.8054262Z Receiving objects:  93% (111/119)
2026-04-23T08:11:46.8055077Z Receiving objects:  94% (112/119)
2026-04-23T08:11:46.8055843Z Receiving objects:  95% (114/119)
2026-04-23T08:11:46.8056531Z Receiving objects:  96% (115/119)
2026-04-23T08:11:46.8057224Z Receiving objects:  97% (116/119)
2026-04-23T08:11:46.8057941Z Receiving objects:  98% (117/119)
2026-04-23T08:11:46.8058610Z Receiving objects:  99% (118/119)
2026-04-23T08:11:46.8059284Z Receiving objects: 100% (119/119)
2026-04-23T08:11:46.8060123Z Receiving objects: 100% (119/119), 49.73 KiB | 9.95 MiB/s, done.
2026-04-23T08:11:46.8060859Z Resolving deltas:   0% (0/22)
2026-04-23T08:11:46.8061553Z Resolving deltas:   4% (1/22)
2026-04-23T08:11:46.8062239Z Resolving deltas:   9% (2/22)
2026-04-23T08:11:46.8062907Z Resolving deltas:  13% (3/22)
2026-04-23T08:11:46.8063580Z Resolving deltas:  18% (4/22)
2026-04-23T08:11:46.8064945Z Resolving deltas:  22% (5/22)
2026-04-23T08:11:46.8065617Z Resolving deltas:  27% (6/22)
2026-04-23T08:11:46.8066519Z Resolving deltas:  31% (7/22)
2026-04-23T08:11:46.8067252Z Resolving deltas:  36% (8/22)
2026-04-23T08:11:46.8067912Z Resolving deltas:  40% (9/22)
2026-04-23T08:11:46.8068567Z Resolving deltas:  45% (10/22)
2026-04-23T08:11:46.8069287Z Resolving deltas:  50% (11/22)
2026-04-23T08:11:46.8070127Z Resolving deltas:  54% (12/22)
2026-04-23T08:11:46.8071006Z Resolving deltas:  59% (13/22)
2026-04-23T08:11:46.8071729Z Resolving deltas:  63% (14/22)
2026-04-23T08:11:46.8072371Z Resolving deltas:  68% (15/22)
2026-04-23T08:11:46.8072645Z Resolving deltas:  72% (16/22)
2026-04-23T08:11:46.8073490Z Resolving deltas:  77% (17/22)
2026-04-23T08:11:46.8074256Z Resolving deltas:  81% (18/22)
2026-04-23T08:11:46.8074962Z Resolving deltas:  86% (19/22)
2026-04-23T08:11:46.8075689Z Resolving deltas:  90% (20/22)
2026-04-23T08:11:46.8076391Z Resolving deltas:  95% (21/22)
2026-04-23T08:11:46.8077103Z Resolving deltas: 100% (22/22)
2026-04-23T08:11:46.8077870Z Resolving deltas: 100% (22/22), done.
2026-04-23T08:11:46.8098369Z From https://smart-int-development.visualstudio.com/SmartDataLink/_git/SmartDataLink
2026-04-23T08:11:46.8125437Z  * [new ref]         ecd52b0f0061f53e723dcacd29bc0ac066d325aa -> origin/ecd52b0f0061f53e723dcacd29bc0ac066d325aa
2026-04-23T08:11:46.8329370Z ##[command]git --config-env=http.extraheader=env_var_http.extraheader fetch --force --tags --prune --prune-tags --progress --no-recurse-submodules origin --depth=1  +ecd52b0f0061f53e723dcacd29bc0ac066d325aa
2026-04-23T08:11:47.3440727Z remote: Azure Repos        
2026-04-23T08:11:47.4096128Z remote: 
2026-04-23T08:11:47.4096493Z remote: Found 0 objects to send. (66 ms)        
2026-04-23T08:11:47.4589965Z From https://smart-int-development.visualstudio.com/SmartDataLink/_git/SmartDataLink
2026-04-23T08:11:47.4591120Z  * branch            ecd52b0f0061f53e723dcacd29bc0ac066d325aa -> FETCH_HEAD
2026-04-23T08:11:47.4929833Z ##[command]git checkout --progress --force refs/remotes/origin/ecd52b0f0061f53e723dcacd29bc0ac066d325aa
2026-04-23T08:11:47.5620657Z Note: switching to 'refs/remotes/origin/ecd52b0f0061f53e723dcacd29bc0ac066d325aa'.
2026-04-23T08:11:47.5621701Z 
2026-04-23T08:11:47.5622605Z You are in 'detached HEAD' state. You can look around, make experimental
2026-04-23T08:11:47.5623527Z changes and commit them, and you can discard any commits you make in this
2026-04-23T08:11:47.5624404Z state without impacting any branches by switching back to a branch.
2026-04-23T08:11:47.5625060Z 
2026-04-23T08:11:47.5626085Z If you want to create a new branch to retain commits you create, you may
2026-04-23T08:11:47.5627503Z do so (now or later) by using -c with the switch command. Example:
2026-04-23T08:11:47.5628113Z 
2026-04-23T08:11:47.5628924Z   git switch -c <new-branch-name>
2026-04-23T08:11:47.5629503Z 
2026-04-23T08:11:47.5630191Z Or undo this operation with:
2026-04-23T08:11:47.5630690Z 
2026-04-23T08:11:47.5631292Z   git switch -
2026-04-23T08:11:47.5631777Z 
2026-04-23T08:11:47.5632689Z Turn off this advice by setting config variable advice.detachedHead to false
2026-04-23T08:11:47.5633369Z 
2026-04-23T08:11:47.5633964Z HEAD is now at ecd52b0 Updated azure-pipelines.yml
2026-04-23T08:11:47.5874144Z ##[section]Finishing: Checkout SmartDataLink@feature-fix-yaml-build-pipeline to s
2026-04-23T08:11:47.5912723Z ##[section]Starting: SonarCloudPrepare
2026-04-23T08:11:47.5920334Z ==============================================================================
2026-04-23T08:11:47.5920433Z Task         : Prepare Analysis Configuration
2026-04-23T08:11:47.5920510Z Description  : Prepare SonarQube Cloud analysis configuration
2026-04-23T08:11:47.5920590Z Version      : 4.2.3
2026-04-23T08:11:47.5920669Z Author       : sonarsource
2026-04-23T08:11:47.5920735Z Help         : [More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/)
2026-04-23T08:11:47.5920857Z ==============================================================================
2026-04-23T08:11:48.0193027Z [INFO]  SonarQube Cloud: Server version: 8.0.0.86026
2026-04-23T08:11:48.3692265Z [INFO]  SonarQube Cloud: Default branch of this repository is 'refs/heads/main'
2026-04-23T08:11:48.3737887Z [command]D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\4.2.3\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe begin /k:smart-int-development_SmartDataLink /o:smart-int-development
2026-04-23T08:11:48.4708860Z SonarScanner for .NET 11.2.1
2026-04-23T08:11:48.4709684Z Using the .NET Framework version of the Scanner for .NET
2026-04-23T08:11:48.5266907Z Pre-processing started.
2026-04-23T08:11:48.5290334Z Preparing working directories...
2026-04-23T08:11:48.7218422Z 08:11:48.720  Updating build integration targets...
2026-04-23T08:11:48.9719380Z 08:11:48.971  WARNING: Authentication with the server has failed.
2026-04-23T08:11:48.9726246Z 08:11:48.971  WARNING: In version 7 of the scanner, the default value for the sonar.host.url changed from "http://localhost:9000" to "https://sonarcloud.io".
2026-04-23T08:11:48.9728851Z If the intention was to connect to the local SonarQube instance, please add the parameter: /d:sonar.host.url="http://localhost:9000"
2026-04-23T08:11:48.9761968Z ##[error]08:11:48.971  Pre-processing failed. Exit code: 1
2026-04-23T08:11:48.9768879Z 08:11:48.971  Pre-processing failed. Exit code: 1
2026-04-23T08:11:48.9814415Z 
2026-04-23T08:11:48.9860348Z ##[error][ERROR] SonarQube Cloud: Error while executing task Prepare: The process 'D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\4.2.3\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
2026-04-23T08:11:48.9863073Z ##[error]The process 'D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\4.2.3\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
2026-04-23T08:11:48.9987365Z ##[section]Finishing: SonarCloudPrepare
2026-04-23T08:11:49.0066173Z Skipping step due to condition evaluation.
Evaluating: SucceededNode()
Result: False

2026-04-23T08:11:49.0143297Z Skipping step due to condition evaluation.
Evaluating: SucceededNode()
Result: False

2026-04-23T08:11:49.0170319Z Skipping step due to condition evaluation.
Evaluating: SucceededNode()
Result: False

2026-04-23T08:11:49.0194988Z Skipping step due to condition evaluation.
Evaluating: SucceededNode()
Result: False

2026-04-23T08:11:49.0221456Z Skipping step due to condition evaluation.
Evaluating: SucceededNode()
Result: False

2026-04-23T08:11:49.0246222Z Skipping step due to condition evaluation.
Evaluating: SucceededNode()
Result: False

2026-04-23T08:11:49.0393665Z ##[section]Starting: Checkout SmartDataLink@feature-fix-yaml-build-pipeline to s
2026-04-23T08:11:49.0399247Z ==============================================================================
2026-04-23T08:11:49.0399368Z Task         : Get sources
2026-04-23T08:11:49.0399432Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2026-04-23T08:11:49.0399543Z Version      : 1.0.0
2026-04-23T08:11:49.0399602Z Author       : Microsoft
2026-04-23T08:11:49.0399668Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2026-04-23T08:11:49.0399753Z ==============================================================================
2026-04-23T08:11:49.2896665Z Cleaning any cached credential from repository: SmartDataLink (Git)
2026-04-23T08:11:49.3002145Z ##[section]Finishing: Checkout SmartDataLink@feature-fix-yaml-build-pipeline to s
2026-04-23T08:11:49.3029549Z ##[section]Starting: Finalize Job
2026-04-23T08:11:49.3040654Z Cleaning up task key
2026-04-23T08:11:49.3041572Z Start cleaning up orphan processes.
2026-04-23T08:11:49.3116276Z ##[section]Finishing: Finalize Job
2026-04-23T08:11:49.3147966Z ##[section]Finishing: Job

Hi Ruben,

Thanks for the log. It… didn’t add anything helpful at all. :sweat_smile:

There aren’t any DEBUG-level log messages here. The log ends very early in the process, but I think there still might have been a few. Where/how did you add the sonar.verbose property?

 
Thx,
Ann

Hi Ann,

to the extra properties of the task yaml section.

- task: SonarCloudPrepare@4

inputs:

SonarCloud: 'SonarCloud'

organization: 'smart-int-development'

scannerMode: 'dotnet'

projectKey: 'smart-int-development_SmartDataLink'

projectName: 'SmartDataLink'

extraProperties: |

 sonar.Verbose=true

Thanks,

Ruben

Hi Ruben,

That’s where it should go. I guess there really is no more detail to be had here. Can you identify about when this started happening?

 
Ann

Hi Ann,

we noticed it a week ago.

It is not an application we have done changes recently.

Last successful build was in December.

Other pipelines for other apps using the same task are fine.

We have renewed the SonarCloud token on Friday too.

Thanks,

Ruben

Hi Ann,

I got it working again now.

Last Friday we decided to create a new token to be shared across different pipelines.

It looks like that didn’t work for this application pipeline.

I created a new token today and replaced it in the service connection for that Azure DevOps Project and the pipeline run again.

After that I have replaced with the shared token created on Friday and it still works.

Not sure what is causing this in the background but sharing in case you want to investigate.

Thanks,

Ruben