TFS Quality Gate Publish task failing after update to 4.8

The TFS Build tasks have updated to version 4.8 over the weekend… Now our Publish Quality Gate Results Task is failing on builds. We get a “read ECONNRESET” error at the end.

I’ve had troubles in the past because the Sonar Qube tasks don’t respect NO_PROXY settings, and I suspect that this is again the case here. Our Prepare Analysis step gets a ECONNRESET when attempting to reach back to our TFS Server to determine the default branch on the git repo… Not sure what has changed in Update 4.8 on the Publish Quality Gate step that is now causing this. The Prepare Analysis does not FAIL the whole Step when getting that error… however the Publish step IS FAILING the whole step on this… Help! what what changed? What is this step now trying to reach for that it wasn’t previously?
Can these PLEASE start respecting the NO_PROXY settings so that they bypass the proxy as needed?

Here is the debug output of the task (see the econnreset at the end)
2019-09-16T13:45:31.8497976Z ==============================================================================
2019-09-16T13:45:31.8498582Z Task : Publish Quality Gate Result
2019-09-16T13:45:31.8499273Z Description : Publish SonarQube’s Quality Gate result on the Azure DevOps build result, to be used after the actual analysis.
2019-09-16T13:45:31.8499895Z Version : 4.8.0
2019-09-16T13:45:31.8500327Z Author : sonarsource
2019-09-16T13:45:31.8500904Z Help : More Information
2019-09-16T13:45:31.8501973Z ==============================================================================
2019-09-16T13:45:32.1077271Z ##[debug]agent.TempDirectory=C:\agent3_work_temp
2019-09-16T13:45:32.1106588Z ##[debug]loading inputs and endpoints
2019-09-16T13:45:32.1111587Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2019-09-16T13:45:32.1123625Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2019-09-16T13:45:32.1127937Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2019-09-16T13:45:32.1130437Z ##[debug]loading INPUT_POLLINGTIMEOUTSEC
2019-09-16T13:45:32.1134392Z ##[debug]loading SECRET_SONARQUBE_ENDPOINT
2019-09-16T13:45:32.1138420Z ##[debug]loaded 5
2019-09-16T13:45:32.1151801Z ##[debug]Agent.ProxyUrl=undefined
2019-09-16T13:45:32.1153314Z ##[debug]Agent.CAInfo=undefined
2019-09-16T13:45:32.1153765Z ##[debug]Agent.ClientCert=undefined
2019-09-16T13:45:32.1154224Z ##[debug]Agent.SkipCertValidation=undefined
2019-09-16T13:45:32.6685790Z ##[debug]SONARQUBE_SCANNER_PARAMS={“sonar.host.url”:"http://.:9000/",“sonar.login”:,“sonar.projectKey”:“service-accountmanagement”,“sonar.projectName”:“Account-Management”,“sonar.projectVersion”:“1.0”,“sonar.branch.name”:“feature/ksf_s2_micrtransaction_122513”,“sonar.scanner.metadataFilePath”:“C:\agent3\_work\_temp\sonar\ksf_s2_micrtransaction_122513-19.259.517.24\52c7ae6d-ca40-98f8-0ee8-8ebaf5b3ba3e\report-task.txt”}
2019-09-16T13:45:32.6699371Z ##[debug]SONARQUBE_ENDPOINT=
*******
2019-09-16T13:45:32.6703411Z ##[debug][SQ] API GET: ‘/api/metrics/search’ with query “{“f”:“name”,“ps”:500}”
2019-09-16T13:45:32.7080021Z ##[debug]Response: 200 Body: “{“metrics”:[{“id”:“120”,“key”:“new_technical_debt”,“type”:“WORK_DUR”,“name”:“Added Technical Debt”},{“id”:“97”,“key”:“blocker_violations”,“type”:“INT”,“name”:“Blocker Issues”},{“id”:“64”,“key”:“new_it_conditions_to_cover”,“type”:“INT”,“name”:“Branches to Cover by IT on New Code”},{“id”:“115”,“key”:“bugs”,“type”:“INT”,“name”:“Bugs”},{“id”:“142”,“key”:“burned_budget”,“type”:“FLOAT”,“name”:“Burned budget”},{“id”:“143”,“key”:“business_value”,“type”:“FLOAT”,“name”:“Business value”},{“id”:“26”,“key”:“class_complexity_distribution”,“type”:“DISTRIB”,“name”:“Class Distribution / Complexity”},{“id”:“7”,“key”:“classes”,“type”:“INT”,“name”:“Classes”},{“id”:“113”,“key”:“code_smells”,“type”:“INT”,“name”:“Code Smells”},{“id”:“29”,“key”:“cognitive_complexity”,“type”:“INT”,“name”:“Cognitive Complexity”},{“id”:“15”,“key”:“comment_lines”,“type”:“INT”,“name”:“Comment Lines”},{“id”:“136”,“key”:“comment_lines_data”,“type”:“DATA”,“name”:“comment_lines_data”},{“id”:“19”,“key”:“commented_out_code_lines”,“type”:“INT”,“name”:“Commented-Out LOC”},{“id”:“16”,“key”:“comment_lines_density”,“type”:“PERCENT”,“name”:“Comments (%)”},{“id”:“23”,“key”:“class_complexity”,“type”:“FLOAT”,“name”:“Complexity / Class”},{“id”:“21”,“key”:“file_complexity”,“type”:“FLOAT”,“name”:“Complexity / File”},{“id”:“25”,“key”:“function_complexity”,“type”:“FLOAT”,“name”:“Complexity / Function”},{“id”:“22”,“key”:“complexity_in_classes”,“type”:“INT”,“name”:“Complexity in Classes”},{“id”:“24”,“key”:“complexity_in_functions”,“type”:“INT”,“name”:“Complexity in Functions”},{“id”:“50”,“key”:“branch_coverage”,“type”:“PERCENT”,“name”:“Condition Coverage”},{“id”:“68”,“key”:“new_it_branch_coverage”,“type”:“PERCENT”,“name”:“Condition Coverage by IT on New Code”},{“id”:“51”,“key”:“new_branch_coverage”,“type”:“PERCENT”,“name”:“Condition Coverage on New Code”},{“id”:“52”,“key”:“conditions_by_line”,“type”:“DATA”,“name”:“Conditions by Line”},{“id”:“46”,“key”:“conditions_to_cover”,“type”:“INT”,“name”:“Conditions to Cover”},{“id”:“47”,“key”:“new_conditions_to_cover”,“type”:“INT”,“name”:“Conditions to Cover on New Code”},{“id”:“112”,“key”:“confirmed_issues”,“type”:“INT”,“name”:“Confirmed Issues”},{“id”:“37”,“key”:“coverage”,“type”:“PERCENT”,“name”:“Coverage”},{“id”:“55”,“key”:“new_it_coverage”,“type”:“PERCENT”,“name”:“Coverage by IT on New Code”},{“id”:“45”,“key”:“coverage_line_hits_data”,“type”:“DATA”,“name”:“Coverage Hits by Line”},{“id”:“38”,“key”:“new_coverage”,“type”:“PERCENT”,“name”:“Coverage on New Code”},{“id”:“53”,“key”:“covered_conditions_by_line”,“type”:“DATA”,“name”:“Covered Conditions by Line”},{“id”:“98”,“key”:“critical_violations”,“type”:“INT”,“name”:“Critical Issues”},{“id”:“20”,“key”:“complexity”,“type”:“INT”,“name”:“Cyclomatic Complexity”},{“id”:“141”,“key”:“last_commit_date”,“type”:“MILLISEC”,“name”:“Date of Last Commit”},{“id”:“123”,“key”:“development_cost”,“type”:“STRING”,“name”:“Development Cost”},{“id”:“145”,“key”:“new_development_cost”,“type”:“STRING”,“name”:“Development Cost on New Code”},{“id”:“9”,“key”:“directories”,“type”:“INT”,“name”:“Directories”},{“id”:“90”,“key”:“duplicated_blocks”,“type”:“INT”,“name”:“Duplicated Blocks”},{“id”:“91”,“key”:“new_duplicated_blocks”,“type”:“INT”,“name”:“Duplicated Blocks on New Code”},{“id”:“92”,“key”:“duplicated_files”,“type”:“INT”,“name”:“Duplicated Files”},{“id”:“88”,“key”:“duplicated_lines”,“type”:“INT”,“name”:“Duplicated Lines”},{“id”:“93”,“key”:“duplicated_lines_density”,“type”:“PERCENT”,“name”:“Duplicated Lines (%)”},{“id”:“89”,“key”:“new_duplicated_lines”,“type”:“INT”,“name”:“Duplicated Lines on New Code”},{“id”:“94”,“key”:“new_duplicated_lines_density”,“type”:“PERCENT”,“name”:“Duplicated Lines on New Code (%)”},{“id”:“95”,“key”:“duplications_data”,“type”:“DATA”,“name”:“Duplication Details”},{“id”:“126”,“key”:“effort_to_reach_maintainability_rating_a”,“type”:“WORK_DUR”,“name”:“Effort to Reach Maintainability Rating A”},{“id”:“137”,“key”:“executable_lines_data”,“type”:“DATA”,“name”:“executable_lines_data”},{“id”:“108”,“key”:“false_positive_issues”,“type”:“INT”,“name”:“False Positive Issues”},{“id”:“28”,“key”:“file_complexity_distribution”,“type”:“DISTRIB”,“name”:“File Distribution / Complexity”},{“id”:“8”,“key”:“files”,“type”:“INT”,“name”:“Files”},{“id”:“27”,“key”:“function_complexity_distribution”,“type”:“DISTRIB”,“name”:“Function Distribution / Complexity”},{“id”:“10”,“key”:“functions”,“type”:“INT”,“name”:“Functions”},{“id”:“2”,“key”:“generated_lines”,“type”:“INT”,“name”:“Generated Lines”},{“id”:“6”,“key”:“generated_ncloc”,“type”:“INT”,“name”:“Generated Lines of Code”},{“id”:“101”,“key”:“info_violations”,“type”:“INT”,“name”:“Info Issues”},{“id”:“96”,“key”:“violations”,“type”:“INT”,“name”:“Issues”},{“id”:“63”,“key”:“it_conditions_to_cover”,“type”:“INT”,“name”:“IT Branches to Cover”},{“id”:“67”,“key”:“it_branch_coverage”,“type”:“PERCENT”,“name”:“IT Condition Coverage”},{“id”:“69”,“key”:“it_conditions_by_line”,“type”:“DATA”,“name”:“IT Conditions by Line”},{“id”:“54”,“key”:“it_coverage”,“type”:“PERCENT”,“name”:“IT Coverage”},{“id”:“62”,“key”:“it_coverage_line_hits_data”,“type”:“DATA”,“name”:“IT Coverage Hits by Line”},{“id”:“70”,“key”:“it_covered_conditions_by_line”,“type”:“DATA”,“name”:“IT Covered Conditions by Line”},{“id”:“60”,“key”:“it_line_coverage”,“type”:“PERCENT”,“name”:“IT Line Coverage”},{“id”:“56”,“key”:“it_lines_to_cover”,“type”:“INT”,“name”:“IT Lines to Cover”},{“id”:“65”,“key”:“it_uncovered_conditions”,“type”:“INT”,“name”:“IT Uncovered Conditions”},{“id”:“58”,“key”:“it_uncovered_lines”,“type”:“INT”,“name”:“IT Uncovered Lines”},{“id”:“43”,“key”:“line_coverage”,“type”:“PERCENT”,“name”:“Line Coverage”},{“id”:“61”,“key”:“new_it_line_coverage”,“type”:“PERCENT”,“name”:“Line Coverage by IT on New Code”},{“id”:“44”,“key”:“new_line_coverage”,“type”:“PERCENT”,“name”:“Line Coverage on New Code”},{“id”:“1”,“key”:“lines”,“type”:“INT”,“name”:“Lines”},{“id”:“3”,“key”:“ncloc”,“type”:“INT”,“name”:“Lines of Code”},{“id”:“5”,“key”:“ncloc_language_distribution”,“type”:“DATA”,“name”:“Lines of Code Per Language”},{“id”:“39”,“key”:“lines_to_cover”,“type”:“INT”,“name”:“Lines to Cover”},{“id”:“57”,“key”:“new_it_lines_to_cover”,“type”:“INT”,“name”:“Lines to Cover by IT on New Code”},{“id”:“40”,“key”:“new_lines_to_cover”,“type”:“INT”,“name”:“Lines to Cover on New Code”},{“id”:“121”,“key”:“sqale_rating”,“type”:“RATING”,“name”:“Maintainability Rating”},{“id”:“122”,“key”:“new_maintainability_rating”,“type”:“RATING”,“name”:“Maintainability Rating on New Code”},{“id”:“99”,“key”:“major_violations”,“type”:“INT”,“name”:“Major Issues”},{“id”:“100”,“key”:“minor_violations”,“type”:“INT”,“name”:“Minor Issues”},{“id”:“135”,“key”:“ncloc_data”,“type”:“DATA”,“name”:“ncloc_data”},{“id”:“103”,“key”:“new_blocker_violations”,“type”:“INT”,“name”:“New Blocker Issues”},{“id”:“116”,“key”:“new_bugs”,“type”:“INT”,“name”:“New Bugs”},{“id”:“114”,“key”:“new_code_smells”,“type”:“INT”,“name”:“New Code Smells”},{“id”:“104”,“key”:“new_critical_violations”,“type”:“INT”,“name”:“New Critical Issues”},{“id”:“107”,“key”:“new_info_violations”,“type”:“INT”,“name”:“New Info Issues”},{“id”:“102”,“key”:“new_violations”,“type”:“INT”,“name”:“New Issues”},{“id”:“4”,“key”:“new_lines”,“type”:“INT”,“name”:“New Lines”},{“id”:“105”,“key”:“new_major_violations”,“type”:“INT”,“name”:“New Major Issues”},{“id”:“106”,“key”:“new_minor_violations”,“type”:“INT”,“name”:“New Minor Issues”},{“id”:“118”,“key”:“new_vulnerabilities”,“type”:“INT”,“name”:“New Vulnerabilities”},{“id”:“110”,“key”:“open_issues”,“type”:“INT”,“name”:“Open Issues”},{“id”:“80”,“key”:“overall_conditions_to_cover”,“type”:“INT”,“name”:“Overall Branches to Cover”},{“id”:“81”,“key”:“new_overall_conditions_to_cover”,“type”:“INT”,“name”:“Overall Branches to Cover on New Code”},{“id”:“84”,“key”:“overall_branch_coverage”,“type”:“PERCENT”,“name”:“Overall Condition Coverage”},{“id”:“85”,“key”:“new_overall_branch_coverage”,“type”:“PERCENT”,“name”:“Overall Condition Coverage on New Code”},{“id”:“86”,“key”:“overall_conditions_by_line”,“type”:“DATA”,“name”:“Overall Conditions by Line”},{“id”:“71”,“key”:“overall_coverage”,“type”:“PERCENT”,“name”:“Overall Coverage”},{“id”:“79”,“key”:“overall_coverage_line_hits_data”,“type”:“DATA”,“name”:“Overall Coverage Hits by Line”},{“id”:“72”,“key”:“new_overall_coverage”,“type”:“PERCENT”,“name”:“Overall Coverage on New Code”},{“id”:“87”,“key”:“overall_covered_conditions_by_line”,“type”:“DATA”,“name”:“Overall Covered Conditions by Line”},{“id”:“77”,“key”:“overall_line_coverage”,“type”:“PERCENT”,“name”:“Overall Line Coverage”},{“id”:“78”,“key”:“new_overall_line_coverage”,“type”:“PERCENT”,“name”:“Overall Line Coverage on New Code”},{“id”:“73”,“key”:“overall_lines_to_cover”,“type”:“INT”,“name”:“Overall Lines to Cover”},{“id”:“74”,“key”:“new_overall_lines_to_cover”,“type”:“INT”,“name”:“Overall Lines to Cover on New Code”},{“id”:“82”,“key”:“overall_uncovered_conditions”,“type”:“INT”,“name”:“Overall Uncovered Conditions”},{“id”:“83”,“key”:“new_overall_uncovered_conditions”,“type”:“INT”,“name”:“Overall Uncovered Conditions on New Code”},{“id”:“75”,“key”:“overall_uncovered_lines”,“type”:“INT”,“name”:“Overall Uncovered Lines”},{“id”:“76”,“key”:“new_overall_uncovered_lines”,“type”:“INT”,“name”:“Overall Uncovered Lines on New Code”},{“id”:“140”,“key”:“quality_profiles”,“type”:“DATA”,“name”:“Profiles”},{“id”:“14”,“key”:“projects”,“type”:“INT”,“name”:“Projects”},{“id”:“13”,“key”:“public_api”,“type”:“INT”,“name”:“Public API”},{“id”:“17”,“key”:“public_documented_api_density”,“type”:“PERCENT”,“name”:“Public Documented API (%)”},{“id”:“18”,“key”:“public_undocumented_api”,“type”:“INT”,“name”:“Public Undocumented API”},{“id”:“139”,“key”:“quality_gate_details”,“type”:“DATA”,“name”:“Quality Gate Details”},{“id”:“138”,“key”:“alert_status”,“type”:“LEVEL”,“name”:“Quality Gate Status”},{“id”:“129”,“key”:“reliability_rating”,“type”:“RATING”,“name”:“Reliability Rating”},{“id”:“130”,“key”:“new_reliability_rating”,“type”:“RATING”,“name”:“Reliability Rating on New Code”},{“id”:“127”,“key”:“reliability_remediation_effort”,“type”:“WORK_DUR”,“name”:“Reliability Remediation Effort”},{“id”:“128”,“key”:“new_reliability_remediation_effort”,“type”:“WORK_DUR”,“name”:“Reliability Remediation Effort on New Code”},{“id”:“111”,“key”:“reopened_issues”,“type”:“INT”,“name”:“Reopened Issues”},{“id”:“133”,“key”:“security_rating”,“type”:“RATING”,“name”:“Security Rating”},{“id”:“134”,“key”:“new_security_rating”,“type”:“RATING”,“name”:“Security Rating on New Code”},{“id”:“131”,“key”:“security_remediation_effort”,“type”:“WORK_DUR”,“name”:“Security Remediation Effort”},{“id”:“132”,“key”:“new_security_remediation_effort”,“type”:“WORK_DUR”,“name”:“Security Remediation Effort on New Code”},{“id”:“33”,“key”:“skipped_tests”,“type”:“INT”,“name”:“Skipped Unit Tests”},{“id”:“146”,“key”:“sonarjava_feedback”,“type”:“DATA”,“name”:“SonarJava feedback”},{“id”:“12”,“key”:“statements”,“type”:“INT”,“name”:“Statements”},{“id”:“144”,“key”:“team_size”,“type”:“INT”,“name”:“Team size”},{“id”:“119”,“key”:“sqale_index”,“type”:“WORK_DUR”,“name”:“Technical Debt”},{“id”:“124”,“key”:“sqale_debt_ratio”,“type”:“PERCENT”,“name”:“Technical Debt Ratio”},{“id”:“125”,“key”:“new_sqale_debt_ratio”,“type”:“PERCENT”,“name”:“Technical Debt Ratio on New Code”},{“id”:“48”,“key”:“uncovered_conditions”,“type”:“INT”,“name”:“Uncovered Conditions”},{“id”:“66”,“key”:“new_it_uncovered_conditions”,“type”:“INT”,“name”:“Uncovered Conditions by IT on New Code”},{“id”:“49”,“key”:“new_uncovered_conditions”,“type”:“INT”,“name”:“Uncovered Conditions on New Code”},{“id”:“41”,“key”:“uncovered_lines”,“type”:“INT”,“name”:“Uncovered Lines”},{“id”:“59”,“key”:“new_it_uncovered_lines”,“type”:“INT”,“name”:“Uncovered Lines by IT on New Code”},{“id”:“42”,“key”:“new_uncovered_lines”,“type”:“INT”,“name”:“Uncovered Lines on New Code”},{“id”:“36”,“key”:“test_data”,“type”:“DATA”,“name”:“Unit Test Details”},{“id”:“31”,“key”:“test_execution_time”,“type”:“MILLISEC”,“name”:“Unit Test Duration”},{“id”:“32”,“key”:“test_errors”,“type”:“INT”,“name”:“Unit Test Errors”},{“id”:“34”,“key”:“test_failures”,“type”:“INT”,“name”:“Unit Test Failures”},{“id”:“35”,“key”:“test_success_density”,“type”:“PERCENT”,“name”:“Unit Test Success (%)”},{“id”:“30”,“key”:“tests”,“type”:“INT”,“name”:“Unit Tests”},{“id”:“117”,“key”:“vulnerabilities”,“type”:“INT”,“name”:“Vulnerabilities”},{“id”:“109”,“key”:“wont_fix_issues”,“type”:“INT”,“name”:“Won’t Fix Issues”}],“total”:145,“p”:1,“ps”:500}”
2019-09-16T13:45:32.7091862Z ##[debug]pollingTimeoutSec=300
2019-09-16T13:45:32.7106494Z ##[debug][SQ] API GET: ‘/api/server/version’ with query “undefined”
2019-09-16T13:45:32.7198895Z ##[debug]Response: 200 Body: “7.5.0.20543”
2019-09-16T13:45:32.7204982Z ##[debug]Build.BuildNumber=ksf_s2_micrtransaction_122513-19.259.517.24
2019-09-16T13:45:32.7205380Z ##[debug]Agent.TempDirectory=C:\agent3_work_temp
2019-09-16T13:45:32.7211521Z ##[debug]defaultRoot: ‘C:\agent3_work_temp’
2019-09-16T13:45:32.7213178Z ##[debug]findOptions.allowBrokenSymbolicLinks: ‘false’
2019-09-16T13:45:32.7213884Z ##[debug]findOptions.followSpecifiedSymbolicLink: ‘true’
2019-09-16T13:45:32.7214365Z ##[debug]findOptions.followSymbolicLinks: ‘true’
2019-09-16T13:45:32.7214930Z ##[debug]matchOptions.debug: ‘false’
2019-09-16T13:45:32.7215287Z ##[debug]matchOptions.nobrace: ‘true’
2019-09-16T13:45:32.7215602Z ##[debug]matchOptions.noglobstar: ‘false’
2019-09-16T13:45:32.7215894Z ##[debug]matchOptions.dot: ‘true’
2019-09-16T13:45:32.7216216Z ##[debug]matchOptions.noext: ‘false’
2019-09-16T13:45:32.7216724Z ##[debug]matchOptions.nocase: ‘true’
2019-09-16T13:45:32.7217176Z ##[debug]matchOptions.nonull: ‘false’
2019-09-16T13:45:32.7217680Z ##[debug]matchOptions.matchBase: ‘false’
2019-09-16T13:45:32.7218397Z ##[debug]matchOptions.nocomment: ‘false’
2019-09-16T13:45:32.7218886Z ##[debug]matchOptions.nonegate: ‘false’
2019-09-16T13:45:32.7219345Z ##[debug]matchOptions.flipNegate: ‘false’
2019-09-16T13:45:32.7219903Z ##[debug]pattern: ‘sonar\ksf_s2_micrtransaction_122513-19.259.517.24*\report-task.txt’
2019-09-16T13:45:32.7255235Z ##[debug]findPath: ‘C:\agent3_work_temp\sonar\ksf_s2_micrtransaction_122513-19.259.517.24’
2019-09-16T13:45:32.7255698Z ##[debug]statOnly: ‘false’
2019-09-16T13:45:32.7258664Z ##[debug]findPath: ‘C:\agent3_work_temp\sonar\ksf_s2_micrtransaction_122513-19.259.517.24’
2019-09-16T13:45:32.7259199Z ##[debug]findOptions.allowBrokenSymbolicLinks: ‘false’
2019-09-16T13:45:32.7259597Z ##[debug]findOptions.followSpecifiedSymbolicLink: ‘true’
2019-09-16T13:45:32.7260022Z ##[debug]findOptions.followSymbolicLinks: ‘true’
2019-09-16T13:45:32.7265241Z ##[debug] C:\agent3_work_temp\sonar\ksf_s2_micrtransaction_122513-19.259.517.24 (directory)
2019-09-16T13:45:32.7275481Z ##[debug] C:\agent3_work_temp\sonar\ksf_s2_micrtransaction_122513-19.259.517.24\52c7ae6d-ca40-98f8-0ee8-8ebaf5b3ba3e (directory)
2019-09-16T13:45:32.7283043Z ##[debug] C:\agent3_work_temp\sonar\ksf_s2_micrtransaction_122513-19.259.517.24\52c7ae6d-ca40-98f8-0ee8-8ebaf5b3ba3e\report-task.txt (file)
2019-09-16T13:45:32.7284769Z ##[debug]3 results
2019-09-16T13:45:32.7285159Z ##[debug]found 3 paths
2019-09-16T13:45:32.7285463Z ##[debug]applying include pattern
2019-09-16T13:45:32.7285869Z ##[debug]adjustedPattern: 'C:\agent3_work_temp\sonar\ksf_s2_micrtransaction_122513-19.259.517.24*
\report-task.txt’
2019-09-16T13:45:32.7301282Z ##[debug]1 matches
2019-09-16T13:45:32.7301828Z ##[debug]1 final results
2019-09-16T13:45:32.7302272Z ##[debug][SQ] Searching for sonar\ksf_s2_micrtransaction_122513-19.259.517.24*\report-task.txt - found 1 file(s)
2019-09-16T13:45:32.7302814Z ##[debug][SQ] Read Task report file: C:\agent3_work_temp\sonar\ksf_s2_micrtransaction_122513-19.259.517.24\52c7ae6d-ca40-98f8-0ee8-8ebaf5b3ba3e\report-task.txt
2019-09-16T13:45:32.7385188Z ##[debug][SQ] Parse Task report file: projectKey=service-accountmanagement
serverUrl=http://hqvebld21.:9000
serverVersion=7.5.0.20543
branch=feature/ksf_s2_micrtransaction_122513
dashboardUrl=http://hqvebld21.
******:9000/dashboard?id=service-accountmanagement&branch=feature%2Fksf_s2_micrtransaction_122513&resolved=false
ceTaskId=AW06Uj5poIxoAx7gdpjk
ceTaskUrl=http://hqvebld21.
:9000/api/ce/task?id=AW06Uj5poIxoAx7gdpjk

2019-09-16T13:45:32.7396206Z ##[debug][SQ] Waiting for task ‘AW06Uj5poIxoAx7gdpjk’ to complete.
2019-09-16T13:45:32.7396721Z ##[debug][SQ] API GET: ‘/api/ce/task’ with query “{“id”:“AW06Uj5poIxoAx7gdpjk”}”
2019-09-16T13:45:32.7528310Z ##[debug]Response: 200 Body: “{“task”:{“id”:“AW06Uj5poIxoAx7gdpjk”,“type”:“REPORT”,“componentId”:“AW0q25CboIxoAx7gdpfk”,“componentKey”:“service-accountmanagement”,“componentName”:“Account-Management”,“componentQualifier”:“TRK”,“status”:“IN_PROGRESS”,“submittedAt”:“2019-09-16T08:45:31-0500”,“submitterLogin”:“admin”,“startedAt”:“2019-09-16T08:45:31-0500”,“executionTimeMs”:1078,“logs”:false,“organization”:“default-organization”,“branch”:“feature/ksf_s2_micrtransaction_122513”,“branchType”:“SHORT”,“warnings”:}}”
2019-09-16T13:45:32.7532057Z ##[debug][SQ] Task status:IN_PROGRESS
2019-09-16T13:45:33.7600143Z ##[debug][SQ] Waiting for task ‘AW06Uj5poIxoAx7gdpjk’ to complete.
2019-09-16T13:45:33.7600890Z ##[debug][SQ] API GET: ‘/api/ce/task’ with query “{“id”:“AW06Uj5poIxoAx7gdpjk”}”
2019-09-16T13:45:33.7729648Z ##[debug]Response: 200 Body: “{“task”:{“id”:“AW06Uj5poIxoAx7gdpjk”,“type”:“REPORT”,“componentId”:“AW0q25CboIxoAx7gdpfk”,“componentKey”:“service-accountmanagement”,“componentName”:“Account-Management”,“componentQualifier”:“TRK”,“status”:“IN_PROGRESS”,“submittedAt”:“2019-09-16T08:45:31-0500”,“submitterLogin”:“admin”,“startedAt”:“2019-09-16T08:45:31-0500”,“executionTimeMs”:2094,“logs”:false,“organization”:“default-organization”,“branch”:“feature/ksf_s2_micrtransaction_122513”,“branchType”:“SHORT”,“warnings”:}}”
2019-09-16T13:45:33.7731913Z ##[debug][SQ] Task status:IN_PROGRESS
2019-09-16T13:45:34.7750065Z ##[debug][SQ] Waiting for task ‘AW06Uj5poIxoAx7gdpjk’ to complete.
2019-09-16T13:45:34.7750729Z ##[debug][SQ] API GET: ‘/api/ce/task’ with query “{“id”:“AW06Uj5poIxoAx7gdpjk”}”
2019-09-16T13:45:34.7933812Z ##[debug]Response: 200 Body: “{“task”:{“id”:“AW06Uj5poIxoAx7gdpjk”,“type”:“REPORT”,“componentId”:“AW0q25CboIxoAx7gdpfk”,“componentKey”:“service-accountmanagement”,“componentName”:“Account-Management”,“componentQualifier”:“TRK”,“status”:“IN_PROGRESS”,“submittedAt”:“2019-09-16T08:45:31-0500”,“submitterLogin”:“admin”,“startedAt”:“2019-09-16T08:45:31-0500”,“executionTimeMs”:3110,“logs”:false,“organization”:“default-organization”,“branch”:“feature/ksf_s2_micrtransaction_122513”,“branchType”:“SHORT”,“warnings”:}}”
2019-09-16T13:45:34.7936179Z ##[debug][SQ] Task status:IN_PROGRESS
2019-09-16T13:45:35.8063337Z ##[debug][SQ] Waiting for task ‘AW06Uj5poIxoAx7gdpjk’ to complete.
2019-09-16T13:45:35.8063974Z ##[debug][SQ] API GET: ‘/api/ce/task’ with query “{“id”:“AW06Uj5poIxoAx7gdpjk”}”
2019-09-16T13:45:35.8183368Z ##[debug]Response: 200 Body: “{“task”:{“id”:“AW06Uj5poIxoAx7gdpjk”,“type”:“REPORT”,“componentId”:“AW0q25CboIxoAx7gdpfk”,“componentKey”:“service-accountmanagement”,“componentName”:“Account-Management”,“componentQualifier”:“TRK”,“status”:“IN_PROGRESS”,“submittedAt”:“2019-09-16T08:45:31-0500”,“submitterLogin”:“admin”,“startedAt”:“2019-09-16T08:45:31-0500”,“executionTimeMs”:4141,“logs”:false,“organization”:“default-organization”,“branch”:“feature/ksf_s2_micrtransaction_122513”,“branchType”:“SHORT”,“warnings”:}}”
2019-09-16T13:45:35.8184347Z ##[debug][SQ] Task status:IN_PROGRESS
2019-09-16T13:45:36.8218981Z ##[debug][SQ] Waiting for task ‘AW06Uj5poIxoAx7gdpjk’ to complete.
2019-09-16T13:45:36.8219648Z ##[debug][SQ] API GET: ‘/api/ce/task’ with query “{“id”:“AW06Uj5poIxoAx7gdpjk”}”
2019-09-16T13:45:36.8456237Z ##[debug]Response: 200 Body: “{“task”:{“id”:“AW06Uj5poIxoAx7gdpjk”,“type”:“REPORT”,“componentId”:“AW0q25CboIxoAx7gdpfk”,“componentKey”:“service-accountmanagement”,“componentName”:“Account-Management”,“componentQualifier”:“TRK”,“status”:“IN_PROGRESS”,“submittedAt”:“2019-09-16T08:45:31-0500”,“submitterLogin”:“admin”,“startedAt”:“2019-09-16T08:45:31-0500”,“executionTimeMs”:5173,“logs”:false,“organization”:“default-organization”,“branch”:“feature/ksf_s2_micrtransaction_122513”,“branchType”:“SHORT”,“warnings”:}}”
2019-09-16T13:45:36.8462010Z ##[debug][SQ] Task status:IN_PROGRESS
2019-09-16T13:45:37.8535319Z ##[debug][SQ] Waiting for task ‘AW06Uj5poIxoAx7gdpjk’ to complete.
2019-09-16T13:45:37.8536456Z ##[debug][SQ] API GET: ‘/api/ce/task’ with query “{“id”:“AW06Uj5poIxoAx7gdpjk”}”
2019-09-16T13:45:37.8673854Z ##[debug]Response: 200 Body: “{“task”:{“id”:“AW06Uj5poIxoAx7gdpjk”,“type”:“REPORT”,“componentId”:“AW0q25CboIxoAx7gdpfk”,“componentKey”:“service-accountmanagement”,“componentName”:“Account-Management”,“componentQualifier”:“TRK”,“analysisId”:“AW06UkUwkFncIq_TrWDK”,“status”:“SUCCESS”,“submittedAt”:“2019-09-16T08:45:31-0500”,“submitterLogin”:“admin”,“startedAt”:“2019-09-16T08:45:31-0500”,“executedAt”:“2019-09-16T08:45:36-0500”,“executionTimeMs”:5220,“logs”:false,“hasScannerContext”:true,“organization”:“default-organization”,“branch”:“feature/ksf_s2_micrtransaction_122513”,“branchType”:“SHORT”,“warningCount”:0,“warnings”:}}”
2019-09-16T13:45:37.8675720Z ##[debug][SQ] Task status:SUCCESS
2019-09-16T13:45:37.8677427Z ##[debug][SQ] Task complete: {“id”:“AW06Uj5poIxoAx7gdpjk”,“type”:“REPORT”,“componentId”:“AW0q25CboIxoAx7gdpfk”,“componentKey”:“service-accountmanagement”,“componentName”:“Account-Management”,“componentQualifier”:“TRK”,“analysisId”:“AW06UkUwkFncIq_TrWDK”,“status”:“SUCCESS”,“submittedAt”:“2019-09-16T08:45:31-0500”,“submitterLogin”:“admin”,“startedAt”:“2019-09-16T08:45:31-0500”,“executedAt”:“2019-09-16T08:45:36-0500”,“executionTimeMs”:5220,“logs”:false,“hasScannerContext”:true,“organization”:“default-organization”,“branch”:“feature/ksf_s2_micrtransaction_122513”,“branchType”:“SHORT”,“warningCount”:0,“warnings”:}
2019-09-16T13:45:37.8680856Z ##[debug][SQ] Retrieve Analysis id ‘AW06UkUwkFncIq_TrWDK.’
2019-09-16T13:45:37.8682456Z ##[debug][SQ] API GET: ‘/api/qualitygates/project_status’ with query “{“analysisId”:“AW06UkUwkFncIq_TrWDK”}”
2019-09-16T13:45:37.8824208Z ##[debug]Response: 200 Body: “{“projectStatus”:{“status”:“OK”,“conditions”:[{“status”:“OK”,“metricKey”:“open_issues”,“comparator”:“GT”,“errorThreshold”:“0”,“actualValue”:“0”},{“status”:“OK”,“metricKey”:“reopened_issues”,“comparator”:“GT”,“errorThreshold”:“0”,“actualValue”:“0”}],“periods”:[{“index”:1,“mode”:“previous_version”,“date”:“2019-09-13T08:41:22-0500”}],“ignoredConditions”:false}}”
2019-09-16T13:45:37.8829817Z ##[debug][SQ] Generate analysis report.’
2019-09-16T13:45:37.8860519Z ##[debug]Number of analyses in this build: 1
2019-09-16T13:45:37.8861967Z ##[debug]Overall Quality Gate status: ok
2019-09-16T13:45:37.8894558Z ##[debug]System.TeamFoundationCollectionUri=https://tfs.*****/tfs/DefaultCollection/
2019-09-16T13:45:37.8895487Z ##[debug]System.TeamProjectId=f3a2c6f6-ca3b-40f4-b6a9-22015e1bcb7b
2019-09-16T13:45:37.8896269Z ##[debug]Build.BuildId=60590
2019-09-16T13:45:37.8897031Z ##[debug][{“op”:0,“path”:"/sonarglobalqualitygate",“value”:“ok”}]
2019-09-16T13:45:37.8918467Z SYSTEMVSSCONNECTION exists true
2019-09-16T13:45:37.8919059Z ##[debug]SYSTEMVSSCONNECTION exists true
2019-09-16T13:45:37.8922958Z SYSTEMVSSCONNECTION exists true
2019-09-16T13:45:37.8923428Z ##[debug]SYSTEMVSSCONNECTION exists true
2019-09-16T13:46:52.9877421Z ##[debug][SQ] Publish task error: read ECONNRESET
2019-09-16T13:46:52.9878578Z ##[debug]task result: Failed
2019-09-16T13:46:52.9881274Z ##[error]read ECONNRESET
2019-09-16T13:46:52.9881881Z ##[debug]Processed: ##vso[task.issue type=error;]read ECONNRESET
2019-09-16T13:46:52.9883323Z ##[debug]Processed: ##vso[task.complete result=Failed;]read ECONNRESET
2019-09-16T13:46:53.0015490Z ##[section]Finishing: Publish Quality Gate Result

Hi,

Is that your TFS url included in your no_proxy env var urls ?

Yes, I have a NO_PROXY environment variable on the server for our TFS server. We also use Postman/Newman on that server that requires the NO_PROXY settings as well, and those tasks respect that environment variable, however the Sonar tasks have not respected it.

Thanks,

I meant, in your NO_PROXY variable value, do you have your TFS url as well ?

We added a REST API Call that is made in the Publish Quality Gate Result to post a build property.

The way the called is made, the NO_PROXY variable is checked, but you have to make sure that it has your TFS host url in order to get this working.

Yes, I have a NO_PROXY environment variable with My TFS URL in it…

Is this list of URLs comma-separated in your variable ?

yes, I had it as “tfs.mydomain.com, mydomain.com”

I just took out the redundant value, and only have the tfs url in
image

but still ECONNRESET

Which version of TFS are you using ?

TFS 2018 Update 3 (16.131.28601.4)

Did you check that the no_proxy env variable is accessible in your build agent ? You can check edit by editing your build definition and add an echo with the value on NO_PROXY.

Thanks.

sure… the environment settings are accessible here is a screen shot of the output of a build spitting out the no_proxy setting

Hmm, Okay, well I think there is some weirdness happening here… I noticed that the output of that NO_PROXY didn’t actually match the changes that I’d put in (to make it ONLY the tfs server)… So I double-checked that my setting was set correctly, and it was… but the server was still reporting my old value… I rebooted the server… and MAGIC… the proxy setting was showing correctly, and now the tasks seem to work! Silly…

thank you SO SO much for your assistance on this… I really don’t understand what happened here, or if this setting change was the issue, or if something else I’d done over the last couple of days solved that or not… I’m going to go try this change on my other build servers and hope for the same results…

That’s great to hear, i had another idea around the fact that your TFS server is exposed through SSL, so might me a certificate issue, but good !

Yes environment variables are quite hard to master sometimes, you have for instance to restart the whole powershell/cmdLine windows where the build agent is run (if it’s the case) in order to get the refreshed environment variables values.

Thanks for your insight !

Yeah, in the end i think you may be on to something through the SSL/Certificate stuff. While attempting to update another build server I realized that one of my other “fix” attempts was to remove the HTTP_PROXY setting all together to see if setting those settings in the Java console itself would help. So in the end I now have no proxy at all for these tasks. I think I can get away with this, as currently the only other thing that needs these setting is segregated off to a different agent server, so I can safely leave the HTTP_PROXY off of my “normal” build servers that run the Sonar steps… I may do more digging as to why the proxy is having issues with our ssl dns name…