The simplest way to know what has changed on your Jenkins builds!
Last Changes is a Jenkin plugin that shows rich VCS diffs between builds.
❗
|
Only Git and Svn based projects 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 .
|
The main objective of this plugin is to have fast access to what has changed on a Jenkins build.
Another interesting aspect is that it can easily help to find the root cause
of a failling build
by highlighting what has changed.
And finally the plugin shines in a continuous delivery environment, where each commit generates a release candidate.
-
This plugin expects
git
orsvn
based builds (a.k.a Source Code Management configuration section). -
While your job runs the plugin reads your build workspace to retrieve the current VCS revision;
-
The diff between
actual
andprevious
revisions will be stored; -
The
diff
for each build can be viewed later in html format.
❗
|
To get most from this plugin use periodically SCM pooling to trigger your builds, more details here.
|
|
The plugin always compare current revision with previous one even no new commit has been made. |
The setup is 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: