'Publish Quality Gate Result' task failing with {"code":"ECONNRESET"} after task update 4.6.3 to 4.7.0

Hi, we have a linux (RHEL 7) build agents running our Azure Devops maven build pipelines. Today we are suddenly seeing failures in all our pipelines at the ‘Publish Quality Gate Result’ task. I have noticed that this task version has moved from 4.6.3 to 4.7.0. We went from successful jobs to failures 5 mins later.

SonarQube: Enterprise Edition Version 7.2.1 (build 14109)
Scanner: 4.x
Azure Devops agent version : 2.155.1
Publish Quality Gate task 4.7.0

##[debug][SQ] Generate analysis report.'
##[debug]Number of analyses in this build: 1
##[debug]Overall Quality Gate status: failed
##[debug]System.TeamFoundationCollectionUri=https://***********
##[debug]System.TeamProjectId=7ec66362-3457-419a-9497-bff7b944a9e0
##[debug]Build.BuildId=336205
##[debug][{"op":"add","path":"/sonarglobalqualitygate","value":"failed"}]
SYSTEMVSSCONNECTION exists true
##[debug]SYSTEMVSSCONNECTION exists true
##[debug]build.artifactStagingDirectory=/vsts_work/_work/3/a
##[debug][SQ] Summary saved at: /vsts_work/_work/3/a/.sqAnalysis/SonarQubeBuildSummary.md
##[debug][SQ] Uploading build summary from /vsts_work/_work/3/a/.sqAnalysis/SonarQubeBuildSummary.md
##[debug]Processed: ##vso[task.addattachment type=Distributedtask.Core.Summary;name=SonarQube Analysis Report;]/vsts_work/_work/3/a/.sqAnalysis/SonarQubeBuildSummary.md
##[error]Failed to update build properties, error was : {"code":"ECONNRESET"}
##[debug]Processed: ##vso[task.issue type=error;]Failed to update build properties, error was : {"code":"ECONNRESET"}
(node:22611) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): undefined

I have looked around and some have indicated that it may be a network issue with nodejs.

Current version we are using is v6.17.1

2 Likes

Yes this was observed in our projects as well