{jenkins-plugin-info:junit-attachments}

This plugin can archive certain files (attachments) together with your JUnit results.

 

To activate this plugin, configure your job with "Additional test report features" and select "Publish test attachments".

How to attach files

By putting them into a known location

One way to do this is to produce files from your tests into a known location.

Example:

By printing out the file name in a format that Jenkins will understand

The above mechanism has a problem that your test needs to know about where your test driver is producing reports to. This 2nd approach eliminates that problem by simply letting you print out arbitrary file names to stdout/stderr in the following format:

[[ATTACHMENT|/absolute/path/to/some/file]]

Each "ATTACHMENT" should be on its own line, without any text before or after.
See Kohsuke's post for more details.

Changelog

Version 1.6 and later

See GitHub releases.

Version 1.5 (2018 Feb 22)

Version 1.4.2 (Jul 6, 2016)

Version 1.4.1 (Jul 5, 2016)

Version 1.4 (Jul 5, 2016)

Version 1.3 (Dec 2, 2012)

Version 1.2 (Dec 19, 2011)

Version 1.1 (Jan 3, 2011)

Version 1.0 (Nov 27, 2009)