junitLogPublisher

The junitLogPublisher task adds a JUnit XML log as a contribution to a build result.

The table below describes junitLogPublisher task attributes.

Attribute Description Required

buildResultUUID

The UUID of the build result to update. The value of this attribute is typically ${buildResultUUID} because the property is built-in when using the Jazz Build Engine.

Yes

filePath

The path to the XML log, or a path to a directory containing XML logs. The path can be a relative path from the base directory of the build file or a full path.

Yes

repositoryAddress

Address of the team repository to use. The value of this attribute is typically ${repositoryAddress} because that property is built-in when using the Jazz Build Engine.

Yes

userId

User ID to use.

Yes

componentMap

The path to a file that contains package-name-to-component mapping information. The package name must match the package for the test suite class.

No

componentName

The specific component to associate with this contribution.

No

failOnError

If true (the default), the task fails if it encounters an error. If false, some errors are ignored and the task is completed.

No

mayFailPattern

A substring of a test suite class name. Any test suite class name that contains the pattern is allowed to fail without causing the overall build to fail. The pattern is a simple string, not a regular expression. If not specified, any test suite failure causes the build to fail.

No

password

Password for the user ID, a zero-length string by default unless specified.

No

passwordFile

The password file to use for the connection. You can create a suitable password file by invoking the Jazz Build Engine with the -createPasswordFile argument. You can only specify one password file.

No

verbose

Specifies more message output. The default is false.

No

Example

<junitLogPublisher repositoryAddress="${repositoryAddress}"
		                   userId="${userId}"
		                   password="${password}"
		                   buildResultUUID="${buildResultUUID}"
		                   filePath="junit.xml" />

Feedback