Disabling the NPM Build step will prevent TFS Build from sending results to SonarQube

Currently working on a UI project involving HTML, CSS, and Angular 2.0.

I am looking to integrate this project with SonarQube, with our build process being handled by TFS.

The steps I need to follow are outlined below:

https://i.sstatic.net/SPHf1.png

Breakdown of the steps: Step 1 https://i.sstatic.net/OdN4l.png Step 2 https://i.sstatic.net/YkT75.png Step 3 https://i.sstatic.net/m32q7.png Step 4 https://i.sstatic.net/KHUkg.png Step 5 https://i.sstatic.net/RccLR.png Step 6 https://i.sstatic.net/FFDDc.png

The error message I encounter is:

 ##[error]The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.

Answer №1

It appears that you are utilizing the SonarQube Scanner for MSBuild, which is specifically designed to work with MSBuild steps only. Unfortunately, this means you cannot analyze a web project as you intend to. However, a new version of the SonarQube extension will soon be released, featuring the SonarQube Scanner for CLI, which will allow you to analyze your web project.

In the meantime, one possible solution would be to manually include the binaries of SonarQube Scanner for CLI and add a Command Line step after the npm Build step (removing the Begin Analysis and End Analysis steps) in order to conduct the analysis.

For more information about the Scanner for CLI, visit here

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Guide on incorporating node module for Babel through Webpack

When I execute the command npm run build I am encountering an ES6 related syntax error from Uglify, indicating that Babel may not be handling the node module (sec-to-min) properly. This is my .babelrc file: { "presets": ["es2015", "stage-0"], "plu ...

The container cannot contain the overflowing DIV

I have 4 different divisions named outer, inner, title, and content. My goal is to place the inner div inside the outer div, with both the title and content divs positioned within the inner div, one above the other. I have set the outer and inner divs to b ...

Ensure that the icon at the conclusion of the <p> tag remains intact and does not break off on its

Issue at hand: The clock icons on my phone screen sometimes break off, see example here: https://i.sstatic.net/NQz9i.png Preferred outcome: The icons should be intact along with the time value, like this: https://i.sstatic.net/nZmC9.png Here is the H ...

What is the best way to ensure the user document is saved when a new post is being created

Having resolved previous issues, my focus now is on populating the user document with posts. Here is the current structure of the user document: { "posts": [], "_id": "5e75cf827ef14514f69c6714", "username": "di ...

Issue with npm run watch in Laravel

While working on my project, I ran 'npm run watch' and encountered this unexpected error. Everything was running smoothly until suddenly I received this error message! > @ watch C:\projects\tests\blog > node node_modules/cro ...

Using Node.js to efficiently parse JSON data into customizable PUG templates

I have a challenge where I am parsing JSON data into elements called homeCards. To achieve this, I use Axios to request the JSON data and then utilize a for loop to cycle through it. Inside my Axios function, I extract the fields I need and store them in v ...

I am currently running a test on a GET endpoint using mocha and chai, and an

I encountered an error while testing my GET endpoint: Uncaught AssertionError: expected { Object (_bsontype, id) } to equal '5be02038cf97ed1cc47feb8a' This is the test I am running: it("it should GET a user by the given id", done => { ...

What is the best way to include the npm packages I installed in my Visual Studio 2017 project within the _Layout file?

After searching through some questions, I came across a few without an answer. To enhance my project, I downloaded packages such as jQuery 3 using npm. In the Dependencies section, it lists npm and shows jquery, bootstrap, and popper. I am unsure how to ...

Setting a unique header for a form-data item: a complete guide

For one of my nodeJS routes, I am sending multipart data as a response. To achieve this, I utilized the form-data library. My specific requirement is to include additional header information for all binary data being sent. This is what I attempted: rout ...

Pre and Post Express.js Route Methods

Is there a way to include middleware functions in each route function of expressjs? Typically, route functions that interact with a database follow a CRUD structure and often require standard before and after statements - is there a method to incorporate ...

Steps to establish a connection using mongoose and an ssh tunnel

My mongod.conf file is configured to only allow localhost connections with the following settings: storage: dbPath: /var/lib/mongodb journal: enabled: true systemLog: destination: file logAppend: true path: /var/log/mongodb/mongod.log net: ...

Does Google Cloud CDN not store data from the storage bucket?

I've been experimenting with combining a Load Balancer, Cloud Storage, and CDN for the past few weeks. Unfortunately, I have not been successful in getting it to work as expected. I uploaded some static files (2 jpgs, svgs, and css files) to a multi- ...

Protractor's functionality is unable to load insecure HTTP scripts

Recently, I developed a bookmarklet and needed to conduct some functional testing on it. Utilizing Protractor, I successfully injected my bookmarklet's JavaScript file into the testing environment. However, due to it being hosted locally, the connecti ...

What is the reason behind the lack of collapsing in an inline-block container that only contains floated items?

Within this design, there are 3 boxes arranged in a row using the float: left; property for each one. These boxes are contained within 2 other elements. Typically, these containers collapse due to the content being comprised of floated items. However, chan ...

Heroku is experiencing issues with loading Firebase credentials

Difficulty with Firebase Integration on Heroku Currently, I am facing an issue with my Node.js server deployed on Heroku that interacts with Firebase. When attempting to run the application on Heroku, I encounter an error stating that it is unable to load ...

Caution: Unable to load bindings, resorting to pure JS instead (consider running npm run rebuild?) within AWS SAM

When I run a sam local invoke to call a typescript AWS Lambda function locally, I am encountering a warning: 2023-04-04T08:53:29.931Z undefined WARN bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?) Should I conf ...

The text within a textarea that is set to 100% width extends outside of its

I'm encountering an issue with a textarea (and potentially any input element) appearing too wide when the width is set to 100%. Below is my CSS code. Firstly, I am resetting all styles. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, ...

Server encountering issues when locating environment variables in Webpack/Express configuration

Having an issue with my Express/React app's server-side rendering setup using Webpack. I'm encountering a build error related to environment variables that I need in my Express server script. In my index.js server script, I have defined the vari ...

Structure of a GraphQL project

What is the most effective way to organize a graphQL project on the server side? Here is my current project structure: src config models setup schema queries index userQuery resolvers index userRes ...

Customize your Bootstrap panel with a user-friendly wysiwyg editor

I'm trying to adjust the height of a wysiwyg editor housed within a panel to be 200px. How can I achieve this? <div class="row"> <div class="col-xs-12 col-md-12 col-lg-8"> <panel heading="Product Des ...