GithubHelp home page GithubHelp logo

guoyu07 / sonar-gate-breaker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gabrie-allaigre/sonar-gate-breaker

0.0 0.0 0.0 3.64 MB

Verify Quality gate after SonarQube pass

License: Other

Java 100.00%

sonar-gate-breaker's Introduction

Sonar Quality Gate Breaker

Verify Quality gate after SonarQube pass and exit if Quality Gate is error.

Download main jar https://github.com/gabrie-allaigre/sonar-gate-breaker/releases/download/1.0.1/sonar-gate-breaker-all-1.0.1.jar

Command line

java -jar sonar-gate-breaker-all-1.0.1.jar

With Gitlab-CI

Example with maven project

Create folder deploy and copy sonar-gate-breaker-all-1.0.1.jar

test_sonar_job:
  stage: test
  only:
    - master
  script:
    - mvn --batch-mode verify org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_LOGIN -PCI
    - java -jar deploy/sonar-gate-breaker-all-1.0.1.jar -u $SONAR_LOGIN

Exit code

key description
0 Quality gate is SUCCESS or WARN
-1 Quality gare is ERROR or WARN

Options

key type description
-t,--reportTaskPath text path of report-task.txt
-u,--username text Username for SonarQube
-p,--password text Password for SonarQube, if use token not fill
-r,--retry integer Number of retry (wait success analys) default 50
-s,--sleep long Sleep between retry default 1000 millisecond
-f,--failOnWarn none Fail on warning default false
-n,--noprint none No print report

sonar-gate-breaker's People

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.