To use SQL Authentication, use the following connection string. =jdbc:sqlserver://localhost databaseName=sonar integratedSecurity=true Ensure that or properties are commented out or SonarQube will use SQL authentication.If you're running the SonarQube server from a command prompt, the user under which the command prompt is running should have db_owner database role membership. The account should have db_owner database role membership. ![]() If you're running SonarQube as a Windows service, make sure the Windows account under which the service is running has permission to connect your SQL server. Download the Microsoft SQL JDBC Auth 11.2.0 package and copy mssql-jdbc_auth-11.2.0.圆4.dll to any folder in your path.If your Microsoft SQL Server requires encryption but you don't want SonarQube to validate the certificate, you must add trustServerCertificate=true to the JDBC URL connection string. If your Microsoft SQL Server doesn't support encryption, you must add encrypt=false to the JDBC URL connection string. Making sure that is_read_committed_snapshot_on is set to true to prevent SonarQube from facing potential deadlocks under heavy loads.Įxample of query to check is_read_committed_snapshot_on: SELECT is_read_committed_snapshot_on FROM sys.databases WHERE name='YourSonarQubeDatabase' Įxample of query to update is_read_committed_snapshot_on: ALTER DATABASE YourSonarQubeDatabase SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK IMMEDIATE MS SQL database's shared lock strategy may impact SonarQube runtime. READ_COMMITED_SNAPSHOT MUST be set on the SonarQube database. Grant this sonarqube user permissions to create, update, and delete objects for this schema.Ĭollation MUST be case-sensitive (CS) and accent-sensitive (AS). They are real requirements not recommendations.Ĭreate an empty schema and a sonarqube user. Be sure to follow the requirements listed for your database. The server and database hosts should be located in the same network.Īll hosts must be time-synchronized. One or more scanners running on your build or continuous integration servers to analyze projects.įor optimal performance, the SonarQube server and database should be installed on separate hosts, and the server host should be dedicated.Metrics and issues for code quality and security generated during code scans.the compute engine in charge of processing code analysis reports and saving them in the SonarQube database.a search server based on Elasticsearch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |