Code coverage not working in sonarqube and quality gates failed

Hi Friends,

Currently I am working in Java project. We are using Ant, Gitlab pipelines and sonarqube but if run gitlab pipe lines it shows build failed and code coverage not reflecting in soanrdashboard.

Anyine can help me or send me gitlab-ci.yaml file and build. xml file for that ASAP.

Thanks in advance.