This repository has been archived by the owner. It is now read-only.
Jenkins plugin that reports build information to Elasticsearch on build completion.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
src/main
.gitignore
LICENSE
README.md
pom.xml

README.md

Elasticsearch Jenkins plugin

Reports Jenkins build information to Elasticsearch on build completion.

Information reported includes:

  • Name of the build.
  • Start time of the build.
  • Duration of the build.
  • Result of the build: success, failed, aborted etc.
  • Environment variables.

Building

Setup

In order to build the plugin Maven must be able to pull the necessary dependencies from Jenkins repository. settings.xml contains the necessary Maven settings.

Build

Run mvn clean install package.

Installation

Launch Jenkins and go to Manage Jenkins, Manage Plugins, Advanced. Use Upload Plugin to upload the hpi file.

Usage

Configure the plugin under Configure System.

  • URL - HTTP URL to an Elasticsearch instance, example: https://username:password@cluster01/.
  • Index name - Name of the index to use, example: jenkins.
  • Type name - Name of the type, example: build.

Mapping

mapping.json contains an example mapping for your index in Elasticsearch.