Giter Site home page Giter Site logo

grimoirelab-perceval-sonarqube's Introduction

A backend for Perceval to retrieve Sonarqube's data

A grimoirelab-perceval backend for the API of a Sonarqube service [1] that extracts information about the projects hosted in such service. It is basic backend of grimoirelab-perceval [2], the data collector of CHAOSS GrimoireLab Tool.

Deployment

This backend needs perceval installed.

Then fine tune and run sudo ./INSTALL.sh.

Configuration

The executable expects the configuration file perceval/backends/sonarqube/sonarqube.cfg to be on the same directory. It accepts the following (sections and) parameters:

[connection]

  • SSL_VERIFY accepts True/False, Y/N, Yes/No.
  • API_TOKEN is a user token for the SonarQube API.

[sonarqube]

  • TARGET_METRIC_FIELDS is a list of Sonarqube metric names sepparated by commas.

Configuration

The executable expects the configuration file perceval/backends/sonarqube/sonarqube.cfg to be on the same directory. It accepts the following (sections and) parameters:

[connection]

  • SSL_VERIFY accepts True/False, Y/N, Yes/No.
  • API_TOKEN is a user token for the SonarQube API.

[sonarqube]

  • TARGET_METRIC_FIELDS is a list of Sonarqube metric names sepparated by commas.

Usage

Once correctly deployed this backend is used like any other. perceval sonarqube --help shows the corresponding help, with the list of available categories for Sonarqube.

Ignore the archive-related arguments. Archiving isn't yet implemented. --from-date isn't implented yet either.

Testing

Please check TESTING.md for more details. For a fast track introduction:

  1. install httpretty: $ sudo pip install httpretty
  2. run all enabled tests: $ python3 tests/test_sonarqube.py

Links

[1] https://www.sonarqube.org

[2] https://github.com/chaoss/grimoirelab-perceval

grimoirelab-perceval-sonarqube's People

Contributors

fioddor avatar assadow2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.