Home Ask Login Register

Developers Planet

Your answer is one click away!

Russell Dyas February 2016

Running Powershell Script

We have a third party software that is ran via a Powershell script once it has ran it it retuns results back via the script (as well as an XML files).

My question is there anyway within Sonar Qube to run a Powershell script (or windows command line) or would I have to write a brand new plugin?



G. Ann - SonarSource Team February 2016

You don't mention what the 3rd party tool is, or what kind of results it yields. So at a guess: yes, you'll have to write a new plugin to read the results generated by this tool and import them as part of your analysis.

Notice, I don't mention firing the tool. That can be done, but in general plugins simply import tool reports, and because plugin development is done in Java, it is likely to be simpler to include kicking the tool off as part of your build script/process. However, if you feel you really must fire it from your plugin, the StyleCop plugin may point you in the right direction. But while the StyleCop plugin fires StyleCop directly, you'll be firing a script to fire your tool. Or maybe you'll be incorporating your script logic into your plugin...? (Probably fewer headaches in the long run that way.)

Post Status

Asked in February 2016
Viewed 2,206 times
Voted 7
Answered 1 times


Leave an answer

Quote of the day: live life