Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

SonarQube localhost server unable to reach #48

Closed
LiewJK opened this issue Oct 7, 2019 · 1 comment
Closed

SonarQube localhost server unable to reach #48

LiewJK opened this issue Oct 7, 2019 · 1 comment

Comments

@LiewJK
Copy link

LiewJK commented Oct 7, 2019

Hi, I'm beginner with sonarqube and gitlab-ci. Just realise this useful solution, but I'm facing an issue. I'm using local host SonarQube, been testing the script below:

sonar-qube:
  stage: sonar-qube
  image: ciricihq/gitlab-sonar-scanner
  variables:
    SONAR_URL: http://localhost:9000
    SONAR_ANALYSIS_MODE: publish
  script:
    - echo "sonar scan..."
    - gitlab-sonar-scanner
    - echo "testing..."

However, I'm receiving message like

ERROR: SonarQube server [http://localhost:9000] can not be reached

For your information, I have started up SonarQube server from terminal before the yml script run. Hope anyone from the community could provide advice in this matter. Thanks!

@LiewJK
Copy link
Author

LiewJK commented Oct 9, 2019

The issue has been solved by exposing the localhost server as well as removing of additional plugin downloaded from SonarQube marketplace.

@LiewJK LiewJK closed this as completed Oct 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant