이 문서는 SonarQube와 Crowd 연동을 위한 가이드를 공유한다.
1. Crowd에서 sonarqube를 application 추가
먼저 Crowd 관리자로 접속하여 sonarqube 어플리케이션을 생성한다.
Details
- Name : sonarqube
- Application type : Generic Application → Active 체크
Remote addresses
- SonarQube 서버 아이피 추가
2. sonar.properties 파일 수정
sonar.properties 파일을 아래 정보를 참고하여 수정한다.
#------------------- # Sonar Crowd Plugin #------------------- # To first try to authenticate against the external sytem. # If the external system is not reachable or if the user is not defined in the external system, the authentication will be performed through the SonarQube internal system. sonar.security.realm=Crowd # URL of the Crowd server. crowd.url=http://10.0.1.2:8095/crowd/ # Crowd application name. # Default is 'sonar'. crowd.application=sonarqube # Crowd application password. crowd.password=your_password # Don't use crowd for sonar account sonar.security.localUsers=admin,sonar