---
title: "Discussion on \"Integrating SonarQube into GitLab CI\" | Hashnode"
description: "Discussion on \"Integrating SonarQube into GitLab CI\". How to use SonarScanner CLI.\nThis is an example of how you can use the SonarScanner CLI. For example, if you want to scan a PHP application. There are also alternatives: Gradle & Maven.\nCreate a file called sonar-project.properties inside of your rep..."
url: "https://hashnode.com/posts/integrating-sonarqube-into-gitlab-ci/608c336aa3716542f363e08d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Integrating SonarQube into GitLab CI](https://thoeny.dev/integrating-sonarqube-into-gitlab-ci?utm_source=hashnode&utm_medium=feed)

How to use SonarScanner CLI. This is an example of how you can use the SonarScanner CLI. For example, if you want to scan a PHP application. There are also alternatives: Gradle & Maven. Create a file called sonar-project.properties inside of your rep...

Oct 19, 2020 · 2 min read · thoeny.dev  
Read the article

-   [#gitlab](https://hashnode.com/tag/gitlab)
-   [#continuous-integration](https://hashnode.com/tag/continuous-integration)

## Written by

[Orlando Thöny](https://hashnode.com/@orlandothoeny)

@orlandothoeny · Zürich, Switzerland

  
[View profile](https://hashnode.com/@orlandothoeny)

Software Developer & DevOps Engineer

## Responses 2

Markdown supported · ⌘↵ to post

[Orlando Thöny](https://hashnode.com/@orlandothoeny)

[Oct 13, 2023](https://hashnode.com/posts/integrating-sonarqube-into-gitlab-ci/608c336aa3716542f363e08d/comment/6529adc2d2fa06034fe35308)

Hi [Mumu](https://hashnode.com/@Ainah30),

Is "xxx.com" the hostname of your SonarQube instance? Maybe you have a firewall problem, are you sure your GitLab job has access to your SonarQube instance?

[Mumu](https://hashnode.com/@Ainah30)

[Oct 14, 2023](https://hashnode.com/posts/integrating-sonarqube-into-gitlab-ci/608c336aa3716542f363e08d/comment/6529adc2d2fa06034fe35308#reply-652aaf22900df10a392606a9)

Hi [Orlando Thöny](https://hashnode.com/@orlandothoeny),

Thanks for you reply, It is the hostname of my gitalb server. And I use docker runner in my project.

++

[Mumu](https://hashnode.com/@Ainah30)

[Oct 12, 2023](https://hashnode.com/posts/integrating-sonarqube-into-gitlab-ci/608c336aa3716542f363e08d/comment/65282d5e443b82f5baff64e9)

Hello, Using that Ci File , I've got that error Reinitialized existing Git repository in /builds/xxx-Projects/xxx-service/.git/ fatal: unable to access 'x': Failed to connect to xxx.com port 443 after 129845 ms: Couldn't connect to server

Could you help please?
