[Solved] Count the number of lines of code changed between time periods [closed]


I am not sure if I understand your question correctly, but here is one idea:

  1. Write a script which will list the changes from SCM checkout and create a file. Add build step to run this script, and add its output file to artifacts of the build.

  2. Produce whatever test report as usual, and add as artifact.

  3. Trigger a downstream job, which gives these artifacts to another script, which combines them to produce your bugs/changes report.

What scripting language to use, doesn’t matter as long as it has good support for the necessary file formats. If you have no preference, and know some Java, and are going to use Jenkins for a long time, then Groovy might be a good choice, because you can also write Jenkins plugins with it, or just tap into Jenkins’ APIs directly. If you are not really a programmer, then Python might be a good choice. If you have a Perl expert in the project, then that might be good. And so on.

1

solved Count the number of lines of code changed between time periods [closed]