logPublisher

The logPublisher task adds a log as a contribution to a build result.

The table below describes logPublisher 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

For tasks that need an input file, specifies the path to a file. It can be an absolute path or a path relative to the base directory of the build file.

Yes

label

Label to use for the build.

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

characterEncoding

The character encoding used in the artifact file. It must be an IANA-compliant name. Defaults to the default encoding of the current platform. For more information, see IANA List of Character Set Names.

No

componentName

The specific component to associate with this contribution.

No

contentType

For the logPublisher task, the type of the artifact. If not specified, the default is text/plain.

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

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

status

Status to set in the IBuildResultContribution. Valid values are OK, ERROR, and WARNING.

No

verbose

Specifies more message output. The default is false.

No

Example

<logPublisher repositoryAddress="${repositoryAddress}"
		              userId="${userId}"
		              password="${password}"
		              buildResultUUID="${buildResultUUID}"
		              filePath="log.txt"
		              label="a log" />

Feedback