Can you use the SonarQube Bamboo plugin to scan an AngularJS project?


(Matthew Douston) #1

Is it possible to use the SonarQube Bamboo plugin to scan an AngularJS project? As far as I can tell you can’t. The End Analysis step ends with this output, which isn’t very helpful. I am using the Begin/End analysis steps with the build step in between.

The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
Possible causes:
	  1. The project has not been built - the project must be built in between the begin and end steps
	  2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 upwards are supported
	  3. The begin, build or end steps have not all been launched from the same folder

SonarQube for Bamboo version: 1.7.2
Using MSBuild.SonarQube.Runner
Sonar Server version: 6.7.0.33306


(G Ann Campbell) #2

Hi,

We don’t maintain the Bamboo plugin, so I’m not familiar with it, but I assume if offers an option to analyze with a scanner other than the SonarQube Scanner for MSBuild, which is what you’re doing when you use the begin and end steps. You should look for that and switch to it.

But if all else fails, you can try installing the SonarQube Scanner directly on your build agent, and invoking it in a command line step (I’m assuming that’s available on Bamboo; I’ve never used it).

 
Ann