‘Publish Quality Gate Result’ task failing with {"code":"SELF_SIGNED_CERT_IN_CHAIN"} after task update 4.6.3 to 4.7.0

‘Publish Quality Gate Result’ task failing with {“code”:“SELF_SIGNED_CERT_IN_CHAIN”} after task update 4.6.3 to 4.7.1

SonarQube Developer Edition 7.9.1
Scanner: 4.x
Azure Devops Server agent version : 2.148.1
Publish Quality Gate task 4.7.0

2019-08-14T11:47:00.6777184Z ##[debug][SQ] Waiting for task 'AWyP8o2w-wy5wUiJ259O' to complete.
2019-08-14T11:47:00.6778396Z ##[debug][SQ] API GET: '/api/ce/task' with query "{"id":"AWyP8o2w-wy5wUiJ259O"}"
2019-08-14T11:47:00.6990306Z ##[debug]Response: 200 Body: "{"task":{"id":"AWyP8o2w-wy5wUiJ259O","type":"REPORT","componentId":"AWm5--rBHjS1afTPH7oe","componentKey":"org.wigo4it.gmu","componentName":"GMU","componentQualifier":"TRK","analysisId":"AWyP8roY09h1_f5j0Prk","status":"SUCCESS","submittedAt":"2019-08-14T13:45:33+0200","submitterLogin":"admin","startedAt":"2019-08-14T13:45:35+0200","executedAt":"2019-08-14T13:46:59+0200","executionTimeMs":84436,"logs":false,"hasScannerContext":true,"organization":"default-organization","warningCount":0,"warnings":[]}}"
2019-08-14T11:47:00.6992562Z ##[debug][SQ] Task status:SUCCESS
2019-08-14T11:47:00.6993328Z ##[debug][SQ] Task complete: {"id":"AWyP8o2w-wy5wUiJ259O","type":"REPORT","componentId":"AWm5--rBHjS1afTPH7oe","componentKey":"org.wigo4it.gmu","componentName":"GMU","componentQualifier":"TRK","analysisId":"AWyP8roY09h1_f5j0Prk","status":"SUCCESS","submittedAt":"2019-08-14T13:45:33+0200","submitterLogin":"admin","startedAt":"2019-08-14T13:45:35+0200","executedAt":"2019-08-14T13:46:59+0200","executionTimeMs":84436,"logs":false,"hasScannerContext":true,"organization":"default-organization","warningCount":0,"warnings":[]}
2019-08-14T11:47:00.7015575Z ##[debug][SQ] Retrieve Analysis id 'AWyP8roY09h1_f5j0Prk.'
2019-08-14T11:47:00.7016583Z ##[debug][SQ] API GET: '/api/qualitygates/project_status' with query "{"analysisId":"AWyP8roY09h1_f5j0Prk"}"
2019-08-14T11:47:00.7206866Z ##[debug]Response: 200 Body: "{"projectStatus":{"status":"ERROR","conditions":[{"status":"ERROR","metricKey":"blocker_violations","comparator":"GT","errorThreshold":"0","actualValue":"1"},{"status":"OK","metricKey":"new_blocker_violations","comparator":"GT","periodIndex":1,"errorThreshold":"0","actualValue":"0"},{"status":"OK","metricKey":"new_bugs","comparator":"GT","periodIndex":1,"errorThreshold":"0","actualValue":"0"},{"status":"OK","metricKey":"new_critical_violations","comparator":"GT","periodIndex":1,"errorThreshold":"0","actualValue":"0"},{"status":"OK","metricKey":"new_major_violations","comparator":"GT","periodIndex":1,"errorThreshold":"0","actualValue":"0"},{"status":"OK","metricKey":"new_minor_violations","comparator":"GT","periodIndex":1,"errorThreshold":"0","actualValue":"0"},{"status":"OK","metricKey":"new_violations","comparator":"GT","periodIndex":1,"errorThreshold":"0","actualValue":"0"}],"periods":[{"index":1,"mode":"previous_version","date":"2019-08-13T23:17:04+0200","parameter":"20190813.2"}],"ignoredConditions":false}}"
2019-08-14T11:47:00.7211961Z ##[debug][SQ] Generate analysis report.'
2019-08-14T11:47:00.7335422Z ##[debug]Number of analyses in this build: 1
2019-08-14T11:47:00.7336144Z ##[debug]Overall Quality Gate status: failed
2019-08-14T11:47:00.7344256Z ##[debug]System.TeamFoundationCollectionUri=https://ads.server.local/tfs/DefaultCollection/
2019-08-14T11:47:00.7344858Z ##[debug]System.TeamProjectId=810452eb-3caa-4eca-ad35-bcdc4658e54f
2019-08-14T11:47:00.7345647Z ##[debug]Build.BuildId=105301
2019-08-14T11:47:00.7348647Z ##[debug][{"op":"add","path":"/sonarglobalqualitygate","value":"failed"}]
2019-08-14T11:47:00.7400010Z SYSTEMVSSCONNECTION exists true
2019-08-14T11:47:00.7400959Z ##[debug]SYSTEMVSSCONNECTION exists true
2019-08-14T11:47:00.7429206Z ##[debug]build.artifactStagingDirectory=E:\BuildAgent01\12\a
2019-08-14T11:47:00.7500146Z ##[debug][SQ] Summary saved at: E:\BuildAgent01\12\a\.sqAnalysis\SonarQubeBuildSummary.md
2019-08-14T11:47:00.7501220Z ##[debug][SQ] Uploading build summary from E:\BuildAgent01\12\a\.sqAnalysis\SonarQubeBuildSummary.md
2019-08-14T11:47:00.7506725Z ##[debug]Processed: ##vso[task.addattachment type=Distributedtask.Core.Summary;name=SonarQube Analysis Report;]E:\BuildAgent01\12\a\.sqAnalysis\SonarQubeBuildSummary.md
2019-08-14T11:47:00.7920801Z ##[error]Failed to update build properties, error was : {"code":"SELF_SIGNED_CERT_IN_CHAIN"}

An extra log entry appears from time to time.

2019-08-19T03:25:28.2693699Z ##[section]Starting: Publish Quality Gate Result
2019-08-19T03:25:28.2761732Z ==============================================================================
2019-08-19T03:25:28.2762637Z Task         : Publish Quality Gate Result
2019-08-19T03:25:28.2763190Z Description  : Publish SonarQube's Quality Gate result on the Azure DevOps build result, to be used after the actual analysis.
2019-08-19T03:25:28.2763680Z Version      : 4.7.0
2019-08-19T03:25:28.2764099Z Author       : sonarsource
2019-08-19T03:25:28.2764567Z Help         : [More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
2019-08-19T03:25:28.2765062Z ==============================================================================
2019-08-19T03:25:32.2683549Z SYSTEMVSSCONNECTION exists true
2019-08-19T03:25:32.3240183Z ##[error]Failed to update build properties, error was : {"code":"SELF_SIGNED_CERT_IN_CHAIN"}
2019-08-19T03:25:32.3285769Z (node:4232) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): undefined
2019-08-19T03:25:32.3468795Z ##[section]Finishing: Publish Quality Gate Result

Hope it helps resolving the issue.