@ringcentral/gitlab-sonarqube-echo-coverage

0.1.1 • Public • Published

@ringcentral/gitlab-sonarqube-echo-coverage

Description

Package sends a request to SonarQube API and prints coverage statistics inside gitlab pipeline.

Installation

npm install @ringcentral/gitlab-sonarqube-echo-coverage
// or
yarn add @ringcentral/gitlab-sonarqube-echo-coverage

Configuration

Package can be configured with environment variables below

Variable Description
CI_COMMIT_REF_NAME Gitlab CI env variable containing the source branch
SONAR_HOST Variable containing sonar host
SONAR_TOKEN Variable containing sonar token
SONAR_PROJECT Variable containing sonar project name

Running

Run this script at the end of your pipeline (the best option is right after sonar coverage upload completed).

rc-gitlab-sonarqube-echo-coverage
// or add it to your package json scripts and do something like
npm run rc-gitlab-sonarqube-echo-coverage
// or
yarn rc-gitlab-sonarqube-echo-coverage

Package Sidebar

Install

npm i @ringcentral/gitlab-sonarqube-echo-coverage

Weekly Downloads

2

Version

0.1.1

License

ISC

Unpacked Size

3.12 kB

Total Files

4

Last publish

Collaborators

  • tylerlong
  • kirill.konshin