Giter Club home page Giter Club logo

node-sonar-scanner's People

Contributors

bcaudan avatar rogeriorc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

node-sonar-scanner's Issues

Change location of executable check

Hi, I've installed sonar-scanner into a project and I'm running it from that project /Users/wilkesbe/dev/searchbox

However, when it runs it says Checking if executable exists: /Users/wilkesbe/.sonar/native-sonar-scanner/sonar-scanner-3.0.3.778-macosx/bin/sonar-scanner

And when it goes into the build pipeline it is also checking a different location to project. So every time we run it, it downloads the binaries (because we re-create the image every time)

So I'd like to be able to get it run from within the project - how can I do this?

I've tried this, but it doesn't work
yarn run sonar-scanner --define --sonar.working.directory=.

I think it might be a parameter when we do the yarn/npm install?

Command line arguments are not picked up if project has sonar-project.properties

I wanted to publish coverage to sonar dashboard for individual branches. From bamboo I passed command line arguments which were ignored.

-Dsonar.branch.name=${bamboo.planRepository.branch}

even for development branch it gets published as master branch coverage.

It works well if I use sonar plugin enabled in bamboo setting the branch from CMD.

Maintainer?

Hi,

If you're looking for a maintainer for this package at any point I'd be happy to do it alongside my own sonarlint one.

Cheers

Does it need java to run?

Hello,

Does it need JRE to run the analysis? I have pure javascript project and I don't want to install Java just for this purpose. What are options?

Thanks,
Kumar

401 when downloading the sonar-scanner-cli

The path provided in this project to SonarQube's binary downloads is returning in a 401 as of October 7, 2018:

build	08-Oct-2018 19:31:52	[00:31:52] Starting SonarQube analysis...
build	08-Oct-2018 19:31:52	[00:31:52] Getting info from "package.json" file
build	08-Oct-2018 19:31:52	[00:31:52] Checking if executable exists: /home/bamboo/.sonar/native-sonar-scanner/sonar-scanner-3.2.0.1227-linux/bin/sonar-scanner
build	08-Oct-2018 19:31:52	[00:31:52] Could not find executable in "/home/bamboo/.sonar/native-sonar-scanner".
build	08-Oct-2018 19:31:52	[00:31:52] Proceed with download of the platform binaries for SonarQube Scanner...
build	08-Oct-2018 19:31:52	[00:31:52] Creating /home/bamboo/.sonar/native-sonar-scanner
build	08-Oct-2018 19:31:52	[00:31:52] Downloading from https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip
build	08-Oct-2018 19:31:52	[00:31:52] (executable will be saved in cache folder: /home/bamboo/.sonar/native-sonar-scanner)
error	08-Oct-2018 19:31:53	[00:31:53] ERROR: impossible to download and extract binary: Response code 401 (Unauthorized)
error	08-Oct-2018 19:31:53	[00:31:53]        SonarQube Scanner binaries probably don't exist for your OS (linux).
error	08-Oct-2018 19:31:53	[00:31:53]        In such situation, the best solution is to install the standard SonarQube Scanner (requires a JVM).
error	08-Oct-2018 19:31:53	[00:31:53]        Check it out at https://redirect.sonarsource.com/doc/install-configure-scanner.html

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.