Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 7 Next »

Travis needs to be enabled for your Github repository.

Setup SonarCloud for your repository

  1. Go to https://sonarcloud.io/

  2. Log in / signup with your github account

  3. Click on “analyze new project”. You find this option when pressing the + on the upper right side of the menu bar:


  4. When prompted to create an organisation, click on “Choose an organization on GitHub”

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

6. Select the free plan

Configure Travis for SonarCloud integration

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

  2. Go to More options → Settings

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

  • SONAR_ORGANIZATION

  • SONAR_PROJECT_KEY

  • SONAR_TOKEN

How to find your token:

In the SonarCloud projects overview, click “Configure analysis” for the 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 should be configured and you can push a branch to get your analysis on SonarCloud

Activate Branch / Pull Request Analysis

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

2. Select GitHub as the Provider

3. Add your repository identifier

Where to find new analyzed branches

After travis successfully ran for your newly pushed branch, you can find the analysis in SonarCloud. 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.

  • No labels