mindparse
mindparse

Reputation: 7265

Updating projectVersion key in sonar properties file using package.json version value

I have a fairly standard web application setup which makes use of nodejs libraries.

I have a SonarQube analysis build step set up on Jenkins which makes use of a sonar project properties file in the root of my project directory.

I was wondering if there are any gulp plugins that will update the projectVersion key in the sonar properties file using the version number value found in my projects package.json file.

Anyone know how to do this?

Thanks

Upvotes: 0

Views: 3230

Answers (1)

Using the SonarQube Scanner for JS will allow you to easily analyze your JS code and read the version information from the package.json file.

Upvotes: 3

Related Questions