jQAssistant / jqassistant

Your Software. Your Structures. Your Rules.
https://jqassistant.org/
GNU General Public License v3.0
198 stars 35 forks source link

Record information about the build/version of which the analysis has been done #445

Open khmarbaise opened 9 years ago

khmarbaise commented 9 years ago

It should be recorded somewhere with which version/scm/build number information the analysis has been done. This is really important if you use a CI solution and to reference the results of a report in comparsion to the code state.

I would suggest to use a kind of meta data like git sha1/ svn revision or more generally a version, branch name and a build number. This could be easily extracted from the maven build itself or passed to jqassistant-maven-plugin by some properties...

obfischer commented 9 years ago

Is is a really desired feature but at the moment we wan't be able to provide such a feature.

DirkMahler commented 9 years ago

If the value is easily accessible via the Maven plugin the effort would be very low - nodes labeled with ":Maven:Project" could provide a string property "scmRevision".

khmarbaise commented 9 years ago

Having one (more) configuration parameter for the jqassistant-maven-plugin which can be provided however by the appropriate build. And this information can be stored along with it into the database...yes along with ":Maven:Project" makes sense...Just an idea...

obfischer commented 9 years ago

We should discuss this later as changing later the choosen solution would break a lot of queries ;-)