๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋นˆ ๊ตฌ๋ฉ ์ฑ„์šฐ๊ธฐ

[SonarQube] SonarQube ์„ค์น˜ ๊ทธ๋ฆฌ๊ณ  ์„ค์น˜ ํ™•์ธ ์šฐ๋‹นํƒ•ํƒ•

SonarQube ํ™ˆํŽ˜์ด์ง€์—์„œ ๋‹ค์šด๋กœ๋“œ ํ™”๋ฉด์—์„œ Community๋ฅผ ์„ ํƒ. Download for free.

 

SonarQube Download ํŽ˜์ด์ง€

ZIP ํŒŒ์ผ๋กœ ๋‹ค์šด๋กœ๋“œ๋œ ๊ฒƒ์„ ํ™•์ธ

SonarQube Download๋กœ ๋ฐ›์€ ZIP ํŒŒ์ผ

 

docs.sonarqube.org/latest/setup/get-started-2-minutes/

 

Try Out SonarQube | SonarQube Docs

From the zip file Download the SonarQube Community Edition zip file. As a non-root user, unzip it, let's say in C:\sonarqube or /opt/sonarqube. As a non-root user, start the SonarQube Server: # On Windows, execute: C:\sonarqube\bin\windows-x86-64\StartSona

docs.sonarqube.org

์—ฌ๊ธฐ ์ด ํŽ˜์ด์ง€์˜ ์„ค๋ช…์„ ๋ณด๊ณ  ZIP ํŒŒ์ผ์„ ํ’€๊ณ  

์›ํ•˜๋Š” ์œ„์น˜์— ZIP ํŒŒ์ผ์„ ํ’€์—ˆ๋‹ค.

์„ค๋ช…๋Œ€๋กœ ๋‚ด PC Windows OS์— ๋งž์ถฐ StartSonar.bat์„ ์‹คํ–‰ํ•จ.

window-x86-64 ํด๋”์˜ StartSonar.bat ์‹คํ–‰

์„ค์น˜ ์‹คํŒจ. ๋กœ๊ทธ๋ฅผ ํ™•์ธํ•œ๋‹ค.

StartSonar.bat ์‹คํ–‰ ๊ฒฐ๊ณผ. ์‹คํŒจ.

WrapperSimpleApp: Encountered an error running main: java.lang.IllegalStateException: SonarQube requires Java 11 to run

 

Java 11์„ ์„ค์น˜ํ•ด์•ผ ํ•œ๋‹ค.

Java 11 ์„ค์น˜ํ•˜๊ณ  ์™”๋‹ค.  Java ๋ฒ„์ „ ๊ต์ฒด ๋ฐฉ๋ฒ• ํ™•์ธํ•˜๋Ÿฌ ๊ฐ€๊ธฐ

 

StartSonar.bat์„ ์žฌ์‹คํ–‰ํ•จ.

์•„๊นŒ๋ณด๋‹ค ๊ฝ‰๊ฝ‰ ์ฑ„์›Œ์ง„ cmd ์ฐฝ.

StartSonar.bat์ด ์‹คํ–‰ ์ค‘

๊ทธ๋ฆฌ๊ณ  ๋“ฑ์žฅํ•œ Windows ๋ณด์•ˆ ๊ฒฝ๊ณ  ์ฐฝ. ๋„ต ์•ก์„ธ์Šค ํ—ˆ์šฉํ•ฉ๋‹ˆ๋‹ค.

Windows ๋ณด์•ˆ ๊ฒฝ๊ณ  ์ฐฝ

cmd ์ฐฝ์— ๋กœ๊ทธ๊ฐ€ ๋‘ ์ค„ ๋” ์ƒ๊ธด ๊ฒƒ์„ ํ™•์ธ

์ถ”๊ฐ€๋œ ๋กœ๊ทธ

 

Try Out SonarQube ๊ธ€์—์„œ ๋‹ค์Œ ๊ธ€์„ ๋ฐœ๊ฒฌ.

Try Out SornarQube ์ผ๋ถ€.

cmd ์ฐฝ์˜ ๋กœ๊ทธ๊ฐ€  up ์ƒํƒœ๋ฅผ ์•Œ๋ฆฌ๋Š” ๋“ฏํ•˜๋‹ค. ๋ธŒ๋ผ์šฐ์ €๋กœ http://localhost:9000 ์— ๋“ค์–ด๊ฐ€๋‹ˆ

SonarQube ๋กœ๊ทธ์ธ ํ™”๋ฉด

๋กœ๊ทธ์ธ ํ™”๋ฉด ๋“ฑ์žฅ. 

Login : admin, Password : admin์„ ์ž…๋ ฅํ•˜๊ณ  ๋กœ๊ทธ์ธ ํ•˜๋‹ˆ

์ดˆ๊ธฐ admin Login, Password ๊ฐ’ ์ž…๋ ฅ ํ›„ ๋กœ๊ทธ์ธ ์ง„ํ–‰

 

password ์—…๋ฐ์ดํŠธ ํ™”๋ฉด ๋“ฑ์žฅ. ๋น„๋ฐ€๋ฒˆํ˜ธ ๋ณ€๊ฒฝํ•˜๊ณ  Update ๋ฒ„ํŠผ ๋ˆ„๋ฅด๋‹ˆ

admin์˜ ๋น„๋ฐ€๋ฒˆํ˜ธ ์ˆ˜์ • ์š”์ฒญ

ํ™”๋ฉด ์ง„์ž…. 

SonarQube ์ •์ƒ ๋กœ๊ทธ์ธ ํ›„ ํ™”๋ฉด

 

SonarQube ์„ค์น˜๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ์ด๋ฃจ์–ด์กŒ์Œ์„ ํ™•์ธํ–ˆ๋‹ค.