A plug-in for Jenkins that creates issues in Jira for failed unit tests.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main
test
.gitignore
License
README.md
configscreen.png
jirascreen.png
pom.xml

README.md

JiraTestResultReporter

DISCLAIMER

Though I tested this plugin on my Jenkins installation, I can't tell for sure that this works as intended. Maybe you want to check the code before using this plugin. Don't blame me, if your Jira gets filled with false issues (which is basically the worst thing, that this plugin can do.)

What is does

This plugin examines the build job for failed unit tests. So you'll have to add e.g. the "Publish xUnit test results report" to your build job. Otherwise JiraTestResultReporter has nothing to work with…

If JiraTestResultReporter detects new failed tests, it will create an issue for every test case in Jira.

Installation

  • cd into the downloaded directory
  • execute the maven command mvn package
  • put the generated file JiraTestResultReporter.hpi to the plugins directory of your Jenkins installation or use the plugin uploader from Manage Jenkins -> Manage Plugins -> "Advanced" tab
  • restart Jenkins

Usage

  • In the build build job add JiraTestResultReporter as a post-build action.
  • Configure the plugin for this job. See the help boxes for details.