The “Publish Quality gate Result” task in Azure Devops is creating an empty file as of version 4.7.0.
- SonarQube version: 7.5(build 20543)
- Azure Devops Server version: 17.143.28511.3
Log:
…
2019-08-20T06:37:25.7681685Z ##[debug][SQ] API GET: ‘/api/metrics/search’ with query “{“f”:“name”,“ps”:500}”
2019-08-20T06:37:25.8515807Z ##[debug]Response: 200 Body: “{“metrics”:[{“id”:“115”,“key”:“new_technical_debt”,“type”:“WORK_DUR”,“name”:“Added Technical Debt”},{“id”:“92”,“key”:“blocker_violations”,“type”:“INT”,“name”:“Blocker Issues”},{“id”:“62”,“key”:“new_it_conditions_to_cover”,“type”:“INT”,“name”:“Branches to Cover by IT on New Code”},{“id”:“110”,“key”:“bugs”,“type”:“INT”,“name”:“Bugs”},{“id”:“134”,“key”:“burned_budget”,“type”:“FLOAT”,“name”:“Burned budget”},{“id”:“135”,“key”:“business_value”,“type”:“FLOAT”,“name”:“Business value”},{“id”:“25”,“key”:“class_complexity_distribution”,“type”:“DISTRIB”,“name”:“Class Distribution / Complexity”},{“id”:“6”,“key”:“classes”,“type”:“INT”,“name”:“Classes”},{“id”:“108”,“key”:“code_smells”,“type”:“INT”,“name”:“Code Smells”},{“id”:“138”,“key”:“cognitive_complexity”,“type”:“INT”,“name”:“Cognitive Complexity”},{“id”:“14”,“key”:“comment_lines”,“type”:“INT”,“name”:“Comment Lines”},{“id”:“128”,“key”:“comment_lines_data”,“type”:“DATA”,“name”:“comment_lines_data”},{“id”:“18”,“key”:“commented_out_code_lines”,“type”:“INT”,“name”:“Commented-Out LOC”},{“id”:“15”,“key”:“comment_lines_density”,“type”:“PERCENT”,“name”:“Comments (%)”},{“id”:“22”,“key”:“class_complexity”,“type”:“FLOAT”,“name”:“Complexity / Class”},{“id”:“20”,“key”:“file_complexity”,“type”:“FLOAT”,“name”:“Complexity / File”},{“id”:“24”,“key”:“function_complexity”,“type”:“FLOAT”,“name”:“Complexity / Function”},{“id”:“21”,“key”:“complexity_in_classes”,“type”:“INT”,“name”:“Complexity in Classes”},{“id”:“23”,“key”:“complexity_in_functions”,“type”:“INT”,“name”:“Complexity in Functions”},{“id”:“48”,“key”:“branch_coverage”,“type”:“PERCENT”,“name”:“Condition Coverage”},{“id”:“66”,“key”:“new_it_branch_coverage”,“type”:“PERCENT”,“name”:“Condition Coverage by IT on New Code”},{“id”:“49”,“key”:“new_branch_coverage”,“type”:“PERCENT”,“name”:“Condition Coverage on New Code”},{“id”:“50”,“key”:“conditions_by_line”,“type”:“DATA”,“name”:“Conditions by Line”},{“id”:“44”,“key”:“conditions_to_cover”,“type”:“INT”,“name”:“Conditions to Cover”},{“id”:“45”,“key”:“new_conditions_to_cover”,“type”:“INT”,“name”:“Conditions to Cover on New Code”},{“id”:“107”,“key”:“confirmed_issues”,“type”:“INT”,“name”:“Confirmed Issues”},{“id”:“35”,“key”:“coverage”,“type”:“PERCENT”,“name”:“Coverage”},{“id”:“53”,“key”:“new_it_coverage”,“type”:“PERCENT”,“name”:“Coverage by IT on New Code”},{“id”:“43”,“key”:“coverage_line_hits_data”,“type”:“DATA”,“name”:“Coverage Hits by Line”},{“id”:“36”,“key”:“new_coverage”,“type”:“PERCENT”,“name”:“Coverage on New Code”},{“id”:“51”,“key”:“covered_conditions_by_line”,“type”:“DATA”,“name”:“Covered Conditions by Line”},{“id”:“93”,“key”:“critical_violations”,“type”:“INT”,“name”:“Critical Issues”},{“id”:“19”,“key”:“complexity”,“type”:“INT”,“name”:“Cyclomatic Complexity”},{“id”:“133”,“key”:“last_commit_date”,“type”:“MILLISEC”,“name”:“Date of Last Commit”},{“id”:“117”,“key”:“development_cost”,“type”:“STRING”,“name”:“Development Cost”},{“id”:“145”,“key”:“new_development_cost”,“type”:“STRING”,“name”:“Development Cost on New Code”},{“id”:“8”,“key”:“directories”,“type”:“INT”,“name”:“Directories”},{“id”:“87”,“key”:“duplicated_blocks”,“type”:“INT”,“name”:“Duplicated Blocks”},{“id”:“140”,“key”:“new_duplicated_blocks”,“type”:“INT”,“name”:“Duplicated Blocks on New Code”},{“id”:“88”,“key”:“duplicated_files”,“type”:“INT”,“name”:“Duplicated Files”},{“id”:“86”,“key”:“duplicated_lines”,“type”:“INT”,“name”:“Duplicated Lines”},{“id”:“89”,“key”:“duplicated_lines_density”,“type”:“PERCENT”,“name”:“Duplicated Lines (%)”},{“id”:“139”,“key”:“new_duplicated_lines”,“type”:“INT”,“name”:“Duplicated Lines on New Code”},{“id”:“141”,“key”:“new_duplicated_lines_density”,“type”:“PERCENT”,“name”:“Duplicated Lines on New Code (%)”},{“id”:“90”,“key”:“duplications_data”,“type”:“DATA”,“name”:“Duplication Details”},{“id”:“120”,“key”:“effort_to_reach_maintainability_rating_a”,“type”:“WORK_DUR”,“name”:“Effort to Reach Maintainability Rating A”},{“id”:“129”,“key”:“executable_lines_data”,“type”:“DATA”,“name”:“executable_lines_data”},{“id”:“103”,“key”:“false_positive_issues”,“type”:“INT”,“name”:“False Positive Issues”},{“id”:“27”,“key”:“file_complexity_distribution”,“type”:“DISTRIB”,“name”:“File Distribution / Complexity”},{“id”:“7”,“key”:“files”,“type”:“INT”,“name”:“Files”},{“id”:“26”,“key”:“function_complexity_distribution”,“type”:“DISTRIB”,“name”:“Function Distribution / Complexity”},{“id”:“9”,“key”:“functions”,“type”:“INT”,“name”:“Functions”},{“id”:“2”,“key”:“generated_lines”,“type”:“INT”,“name”:“Generated Lines”},{“id”:“5”,“key”:“generated_ncloc”,“type”:“INT”,“name”:“Generated Lines of Code”},{“id”:“96”,“key”:“info_violations”,“type”:“INT”,“name”:“Info Issues”},{“id”:“91”,“key”:“violations”,“type”:“INT”,“name”:“Issues”},{“id”:“61”,“key”:“it_conditions_to_cover”,“type”:“INT”,“name”:“IT Branches to Cover”},{“id”:“65”,“key”:“it_branch_coverage”,“type”:“PERCENT”,“name”:“IT Condition Coverage”},{“id”:“67”,“key”:“it_conditions_by_line”,“type”:“DATA”,“name”:“IT Conditions by Line”},{“id”:“52”,“key”:“it_coverage”,“type”:“PERCENT”,“name”:“IT Coverage”},{“id”:“60”,“key”:“it_coverage_line_hits_data”,“type”:“DATA”,“name”:“IT Coverage Hits by Line”},{“id”:“68”,“key”:“it_covered_conditions_by_line”,“type”:“DATA”,“name”:“IT Covered Conditions by Line”},{“id”:“58”,“key”:“it_line_coverage”,“type”:“PERCENT”,“name”:“IT Line Coverage”},{“id”:“54”,“key”:“it_lines_to_cover”,“type”:“INT”,“name”:“IT Lines to Cover”},{“id”:“63”,“key”:“it_uncovered_conditions”,“type”:“INT”,“name”:“IT Uncovered Conditions”},{“id”:“56”,“key”:“it_uncovered_lines”,“type”:“INT”,“name”:“IT Uncovered Lines”},{“id”:“41”,“key”:“line_coverage”,“type”:“PERCENT”,“name”:“Line Coverage”},{“id”:“59”,“key”:“new_it_line_coverage”,“type”:“PERCENT”,“name”:“Line Coverage by IT on New Code”},{“id”:“42”,“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”:“4”,“key”:“ncloc_language_distribution”,“type”:“DATA”,“name”:“Lines of Code Per Language”},{“id”:“37”,“key”:“lines_to_cover”,“type”:“INT”,“name”:“Lines to Cover”},{“id”:“55”,“key”:“new_it_lines_to_cover”,“type”:“INT”,“name”:“Lines to Cover by IT on New Code”},{“id”:“38”,“key”:“new_lines_to_cover”,“type”:“INT”,“name”:“Lines to Cover on New Code”},{“id”:“116”,“key”:“sqale_rating”,“type”:“RATING”,“name”:“Maintainability Rating”},{“id”:“142”,“key”:“new_maintainability_rating”,“type”:“RATING”,“name”:“Maintainability Rating on New Code”},{“id”:“94”,“key”:“major_violations”,“type”:“INT”,“name”:“Major Issues”},{“id”:“95”,“key”:“minor_violations”,“type”:“INT”,“name”:“Minor Issues”},{“id”:“127”,“key”:“ncloc_data”,“type”:“DATA”,“name”:“ncloc_data”},{“id”:“98”,“key”:“new_blocker_violations”,“type”:“INT”,“name”:“New Blocker Issues”},{“id”:“111”,“key”:“new_bugs”,“type”:“INT”,“name”:“New Bugs”},{“id”:“109”,“key”:“new_code_smells”,“type”:“INT”,“name”:“New Code Smells”},{“id”:“99”,“key”:“new_critical_violations”,“type”:“INT”,“name”:“New Critical Issues”},{“id”:“102”,“key”:“new_info_violations”,“type”:“INT”,“name”:“New Info Issues”},{“id”:“97”,“key”:“new_violations”,“type”:“INT”,“name”:“New Issues”},{“id”:“137”,“key”:“new_lines”,“type”:“INT”,“name”:“New Lines”},{“id”:“100”,“key”:“new_major_violations”,“type”:“INT”,“name”:“New Major Issues”},{“id”:“101”,“key”:“new_minor_violations”,“type”:“INT”,“name”:“New Minor Issues”},{“id”:“113”,“key”:“new_vulnerabilities”,“type”:“INT”,“name”:“New Vulnerabilities”},{“id”:“105”,“key”:“open_issues”,“type”:“INT”,“name”:“Open Issues”},{“id”:“78”,“key”:“overall_conditions_to_cover”,“type”:“INT”,“name”:“Overall Branches to Cover”},{“id”:“79”,“key”:“new_overall_conditions_to_cover”,“type”:“INT”,“name”:“Overall Branches to Cover on New Code”},{“id”:“82”,“key”:“overall_branch_coverage”,“type”:“PERCENT”,“name”:“Overall Condition Coverage”},{“id”:“83”,“key”:“new_overall_branch_coverage”,“type”:“PERCENT”,“name”:“Overall Condition Coverage on New Code”},{“id”:“84”,“key”:“overall_conditions_by_line”,“type”:“DATA”,“name”:“Overall Conditions by Line”},{“id”:“69”,“key”:“overall_coverage”,“type”:“PERCENT”,“name”:“Overall Coverage”},{“id”:“77”,“key”:“overall_coverage_line_hits_data”,“type”:“DATA”,“name”:“Overall Coverage Hits by Line”},{“id”:“70”,“key”:“new_overall_coverage”,“type”:“PERCENT”,“name”:“Overall Coverage on New Code”},{“id”:“85”,“key”:“overall_covered_conditions_by_line”,“type”:“DATA”,“name”:“Overall Covered Conditions by Line”},{“id”:“75”,“key”:“overall_line_coverage”,“type”:“PERCENT”,“name”:“Overall Line Coverage”},{“id”:“76”,“key”:“new_overall_line_coverage”,“type”:“PERCENT”,“name”:“Overall Line Coverage on New Code”},{“id”:“71”,“key”:“overall_lines_to_cover”,“type”:“INT”,“name”:“Overall Lines to Cover”},{“id”:“72”,“key”:“new_overall_lines_to_cover”,“type”:“INT”,“name”:“Overall Lines to Cover on New Code”},{“id”:“80”,“key”:“overall_uncovered_conditions”,“type”:“INT”,“name”:“Overall Uncovered Conditions”},{“id”:“81”,“key”:“new_overall_uncovered_conditions”,“type”:“INT”,“name”:“Overall Uncovered Conditions on New Code”},{“id”:“73”,“key”:“overall_uncovered_lines”,“type”:“INT”,“name”:“Overall Uncovered Lines”},{“id”:“74”,“key”:“new_overall_uncovered_lines”,“type”:“INT”,“name”:“Overall Uncovered Lines on New Code”},{“id”:“132”,“key”:“quality_profiles”,“type”:“DATA”,“name”:“Profiles”},{“id”:“13”,“key”:“projects”,“type”:“INT”,“name”:“Projects”},{“id”:“12”,“key”:“public_api”,“type”:“INT”,“name”:“Public API”},{“id”:“16”,“key”:“public_documented_api_density”,“type”:“PERCENT”,“name”:“Public Documented API (%)”},{“id”:“17”,“key”:“public_undocumented_api”,“type”:“INT”,“name”:“Public Undocumented API”},{“id”:“131”,“key”:“quality_gate_details”,“type”:“DATA”,“name”:“Quality Gate Details”},{“id”:“130”,“key”:“alert_status”,“type”:“LEVEL”,“name”:“Quality Gate Status”},{“id”:“123”,“key”:“reliability_rating”,“type”:“RATING”,“name”:“Reliability Rating”},{“id”:“143”,“key”:“new_reliability_rating”,“type”:“RATING”,“name”:“Reliability Rating on New Code”},{“id”:“121”,“key”:“reliability_remediation_effort”,“type”:“WORK_DUR”,“name”:“Reliability Remediation Effort”},{“id”:“122”,“key”:“new_reliability_remediation_effort”,“type”:“WORK_DUR”,“name”:“Reliability Remediation Effort on New Code”},{“id”:“106”,“key”:“reopened_issues”,“type”:“INT”,“name”:“Reopened Issues”},{“id”:“126”,“key”:“security_rating”,“type”:“RATING”,“name”:“Security Rating”},{“id”:“144”,“key”:“new_security_rating”,“type”:“RATING”,“name”:“Security Rating on New Code”},{“id”:“124”,“key”:“security_remediation_effort”,“type”:“WORK_DUR”,“name”:“Security Remediation Effort”},{“id”:“125”,“key”:“new_security_remediation_effort”,“type”:“WORK_DUR”,“name”:“Security Remediation Effort on New Code”},{“id”:“31”,“key”:“skipped_tests”,“type”:“INT”,“name”:“Skipped Unit Tests”},{“id”:“146”,“key”:“sonarjava_feedback”,“type”:“DATA”,“name”:“SonarJava feedback”},{“id”:“11”,“key”:“statements”,“type”:“INT”,“name”:“Statements”},{“id”:“136”,“key”:“team_size”,“type”:“INT”,“name”:“Team size”},{“id”:“114”,“key”:“sqale_index”,“type”:“WORK_DUR”,“name”:“Technical Debt”},{“id”:“118”,“key”:“sqale_debt_ratio”,“type”:“PERCENT”,“name”:“Technical Debt Ratio”},{“id”:“119”,“key”:“new_sqale_debt_ratio”,“type”:“PERCENT”,“name”:“Technical Debt Ratio on New Code”},{“id”:“46”,“key”:“uncovered_conditions”,“type”:“INT”,“name”:“Uncovered Conditions”},{“id”:“64”,“key”:“new_it_uncovered_conditions”,“type”:“INT”,“name”:“Uncovered Conditions by IT on New Code”},{“id”:“47”,“key”:“new_uncovered_conditions”,“type”:“INT”,“name”:“Uncovered Conditions on New Code”},{“id”:“39”,“key”:“uncovered_lines”,“type”:“INT”,“name”:“Uncovered Lines”},{“id”:“57”,“key”:“new_it_uncovered_lines”,“type”:“INT”,“name”:“Uncovered Lines by IT on New Code”},{“id”:“40”,“key”:“new_uncovered_lines”,“type”:“INT”,“name”:“Uncovered Lines on New Code”},{“id”:“34”,“key”:“test_data”,“type”:“DATA”,“name”:“Unit Test Details”},{“id”:“29”,“key”:“test_execution_time”,“type”:“MILLISEC”,“name”:“Unit Test Duration”},{“id”:“30”,“key”:“test_errors”,“type”:“INT”,“name”:“Unit Test Errors”},{“id”:“32”,“key”:“test_failures”,“type”:“INT”,“name”:“Unit Test Failures”},{“id”:“33”,“key”:“test_success_density”,“type”:“PERCENT”,“name”:“Unit Test Success (%)”},{“id”:“28”,“key”:“tests”,“type”:“INT”,“name”:“Unit Tests”},{“id”:“112”,“key”:“vulnerabilities”,“type”:“INT”,“name”:“Vulnerabilities”},{“id”:“104”,“key”:“wont_fix_issues”,“type”:“INT”,“name”:“Won’t Fix Issues”}],“total”:145,“p”:1,“ps”:500}”
2019-08-20T06:37:25.8524192Z ##[debug]pollingTimeoutSec=300
2019-08-20T06:37:25.8524528Z ##[debug]Build.BuildNumber=20190820.1
2019-08-20T06:37:25.8524835Z ##[debug]Agent.TempDirectory=E:\AzureDevOpsAgent\A1_work_temp
2019-08-20T06:37:25.8530790Z ##[debug]defaultRoot: ‘E:\AzureDevOpsAgent\A1_work_temp’
2019-08-20T06:37:25.8532241Z ##[debug]findOptions.allowBrokenSymbolicLinks: ‘false’
2019-08-20T06:37:25.8532660Z ##[debug]findOptions.followSpecifiedSymbolicLink: ‘true’
2019-08-20T06:37:25.8532967Z ##[debug]findOptions.followSymbolicLinks: ‘true’
2019-08-20T06:37:25.8534465Z ##[debug]matchOptions.debug: ‘false’
2019-08-20T06:37:25.8534861Z ##[debug]matchOptions.nobrace: ‘true’
2019-08-20T06:37:25.8535152Z ##[debug]matchOptions.noglobstar: ‘false’
2019-08-20T06:37:25.8535650Z ##[debug]matchOptions.dot: ‘true’
2019-08-20T06:37:25.8535937Z ##[debug]matchOptions.noext: ‘false’
2019-08-20T06:37:25.8536548Z ##[debug]matchOptions.nocase: ‘true’
2019-08-20T06:37:25.8536816Z ##[debug]matchOptions.nonull: ‘false’
2019-08-20T06:37:25.8537198Z ##[debug]matchOptions.matchBase: ‘false’
2019-08-20T06:37:25.8537616Z ##[debug]matchOptions.nocomment: ‘false’
2019-08-20T06:37:25.8537997Z ##[debug]matchOptions.nonegate: ‘false’
2019-08-20T06:37:25.8538266Z ##[debug]matchOptions.flipNegate: ‘false’
2019-08-20T06:37:25.8539053Z ##[debug]pattern: ‘sonar\20190820.1**\report-task.txt’
2019-08-20T06:37:25.8579222Z ##[debug]findPath: ‘E:\AzureDevOpsAgent\A1_work_temp\sonar\20190820.1’
2019-08-20T06:37:25.8582889Z ##[debug]statOnly: ‘false’
2019-08-20T06:37:25.8585081Z ##[debug]findPath: ‘E:\AzureDevOpsAgent\A1_work_temp\sonar\20190820.1’
2019-08-20T06:37:25.8585470Z ##[debug]findOptions.allowBrokenSymbolicLinks: ‘false’
2019-08-20T06:37:25.8585774Z ##[debug]findOptions.followSpecifiedSymbolicLink: ‘true’
2019-08-20T06:37:25.8586177Z ##[debug]findOptions.followSymbolicLinks: ‘true’
2019-08-20T06:37:25.8586776Z ##[debug]0 results
2019-08-20T06:37:25.8587253Z ##[debug]found 0 paths
2019-08-20T06:37:25.8587569Z ##[debug]applying include pattern
2019-08-20T06:37:25.8587891Z ##[debug]adjustedPattern: ‘E:\AzureDevOpsAgent\A1_work_temp\sonar\20190820.1**\report-task.txt’
2019-08-20T06:37:25.8600056Z ##[debug]0 matches
2019-08-20T06:37:25.8600557Z ##[debug]0 final results
2019-08-20T06:37:25.8600876Z ##[debug][SQ] Searching for sonar\20190820.1**\report-task.txt - found 0 file(s)
2019-08-20T06:37:25.8601180Z ##[debug]Number of analyses in this build: 0
2019-08-20T06:37:25.8601464Z ##[debug]Overall Quality Gate status: ok
2019-08-20T06:37:25.8602218Z ##[debug]System.TeamFoundationCollectionUri=https://tfs-acc.alm.engie-electrabel.be/tfs/MS_Belux/
2019-08-20T06:37:25.8602841Z ##[debug]System.TeamProjectId=1575200c-b794-499d-b1e8-e2c8fd2ccde1
2019-08-20T06:37:25.8603394Z ##[debug]Build.BuildId=32619
2019-08-20T06:37:25.8612107Z ##[debug][{“op”:“add”,“path”:"/sonarglobalqualitygate",“value”:“ok”}]
2019-08-20T06:37:25.8631996Z SYSTEMVSSCONNECTION exists true
2019-08-20T06:37:25.8632374Z ##[debug]SYSTEMVSSCONNECTION exists true
2019-08-20T06:37:25.8652490Z ##[debug]build.artifactStagingDirectory=E:\AzureDevOpsAgent\A1_work\50\a
2019-08-20T06:37:25.8667799Z ##[debug][SQ] Summary saved at: E:\AzureDevOpsAgent\A1_work\50\a.sqAnalysis\SonarQubeBuildSummary.md
2019-08-20T06:37:25.8668358Z ##[debug][SQ] Uploading build summary from E:\AzureDevOpsAgent\A1_work\50\a.sqAnalysis\SonarQubeBuildSummary.md
2019-08-20T06:37:25.8689978Z ##[debug]Processed: ##vso[task.addattachment type=Distributedtask.Core.Summary;name=SonarQube Analysis Report;]E:\AzureDevOpsAgent\A1_work\50\a.sqAnalysis\SonarQubeBuildSummary.md
2019-08-20T06:37:25.9033842Z ##[debug]Response: 200 Body: “”{“count”:1,“value”:{“sonarglobalqualitygate”:{"$type":“System.String”,"$value":“ok”}}}""
2019-08-20T06:37:25.9100769Z ##[section]Finishing: Publish Quality Gate Result
‘’’