Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Travis needs to be enabled for your Github repository.

Setup SonarCloud for your repository

...

5. Choose your account and repository and click “Install”

...

6. Select the free plan

...

Configure

...

GitHub Actions for SonarCloud integration

  1. Go to https://travis-ci.org/your fork

  2. Go to More options Settings SettingsSecrets

...

3. Add the following keys. Organisation and Project Key can be made public, the Token should not be made publicrepository secrets:

  • SONAR_ORGANIZATION

  • SONAR_PROJECT_KEY

  • SONAR_TOKEN

...

How to find your token, organization and project key:

In the SonarCloud projects overview, click “Configure analysis” for the taskana TASKANA project

...

Select “Manually”

...

Select “Maven” and copy the token which can be found in the blurred section of the following image within the <sonar.login>-tag.

...

Now travis GitHub Actions should be configured and you can push a branch to get your SonarQube analysis on SonarCloudsonarcloud

...

Activate Branch / Pull Request Analysis

  1. Navigate to Administration → General Settings → Pull Requests within your taskana TASKANA project.

...

2. Select GitHub as the Provider

...

Where to find new analyzed branches

After travis GitHub Actions successfully ran for your newly pushed branch, you can find the analysis in SonarCloudsonarcloud. Select your project and afterwards click on “master” in the top right corner, marked red in the following picture. There you will be able to select the desired branch analysis.

...