Last Changes is a Jenkin plugin that shows rich
VCS diffs between builds.
❗
|
Only Git and Svn are supported.
|
The plugin uses diff2html to show last changes of a given build, example:
Or using side-by-side configuration:
ℹ️
|
Last changes means compare current revision with previous one .
|
One of the objectives of this plugin is to easily find the root cause
of a failling build by highlighting what has changed.
Also the plugin shines in a continuous delivery environment, where each commit generates a release candidate. In this case the plugin will show what has changed on a possible release
.
-
The plugin expects that your builds are triggered by a SCM change (git push/svn commit);
-
After the change your job will be run;
-
The diff between
actual
andprevious
change will be stored on your build; -
The
diff
for each build can be viewed later in html format.
The setup id done via build configuration
and basically reflects diff2html options:
An easy way to test this plugin is using a docker container, here are the steps (assumming you have docker installed):
-
Run the image:
docker run -it -p 8080:8080 rmpestano/jenkins-last-changes
-
Access localhot:8080/ and create a job
-
Configure this svn repository: https://subversion.assembla.com/svn/cucumber-json-files/trunk/
-
Add the Publish last changes post build action;
-
Just run the job
Job output should look like: