I want the output in numbers: how many lines added how many lines deleted how many lines modified
is it possible with Jenkins if yes then how. is there any other svn command or any other method to get the desired results.
I want the output in numbers: how many lines added how many lines deleted how many lines modified
is it possible with Jenkins if yes then how. is there any other svn command or any other method to get the desired results.
Yes, it is possible, but you will be able to get a more specific answer if you provide more details in your question about your environment and what you're trying to accomplish.
I'll assume you're running on Linux and that you always want to compare the current revision with the previous revision.
Install diffstat, which is available for most Linux distributions and may be present by default on OS X.
Create a job that runs the following bash shell script:
previous=$(($SVN_REVISION-1)) svn diff -r $previous | diffstat -m -s
Explanation:
SVN_REVISION
environment variable provided by Jenkins.svn diff -r
generates the diffdiffstat -m
tries to compute modifications, -s
outputs just the summarySee also Using diffstat with subversion.