Skip to content

jenkinsci/last-changes-plugin

Repository files navigation

Last Changes Plugin

Build Status (Travis CI)

Build Status (Cloudbees)

Last Changes is a Jenkin plugin that shows rich VCS diffs between builds.

Only Git and Svn are supported.

1. Introduction

The plugin uses diff2html to show last changes of a given build, example:

last changes03

Or using side-by-side configuration:

last changes05
ℹ️
Last changes means compare current revision with previous one.

2. Objectives

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.

3. How it works?

  1. The plugin expects that your builds are triggered by a SCM change (git push/svn commit);

  2. After the change your job will be run;

  3. The diff between actual and previous change will be stored on your build;

  4. The diff for each build can be viewed later in html format.

4. Usage

After installation just activate the post build action named Publish Last Changes.

  1. Activate build action

    last changes activation
  2. Last changes menu should be available

    last changes01
  3. Build changes history

    last changes02
  4. Last changes menu is available for builds that published changes

    last changes04

5. Configuration

The setup id done via build configuration and basically reflects diff2html options:

last changes config

6. Docker

An easy way to test this plugin is using a docker container, here are the steps (assumming you have docker installed):

  1. Run the image:

    docker run -it -p 8080:8080 rmpestano/jenkins-last-changes
  2. Access localhot:8080/ and create a job

  3. Configure this svn repository: https://subversion.assembla.com/svn/cucumber-json-files/trunk/

  4. Add the Publish last changes post build action;

  5. Just run the job

Job output should look like:

last changes docker