How to show git diff in Jenkins

I have build work in Jenkins which is based on the git project. If you look at the changes page for each assembly, I can see the commits that are new to this version, who contributed them, and the list of files changed.

What I am missing is the ability to see the actual diff - which lines of code have been changed. How can this be achieved?

I am using a local git repository hosted on the same PC as the jenkins server

+5
source share
1 answer

You can use Last Changes Plugin for this.

Just install it and do not forget to select the Publish Last Changes option from the Post-build Actions drop-down menu.

+2
source

All Articles