artifactFilePublisher

The artifactFilePublisher task adds an artifact contribution to a build result. The artifact is stored directly in the Jazz™ repository. Artifact file contributions are shown on the downloads page of the build result.

This task should not be used to publish artifacts that are larger than 10 megabytes. You should store and manage large artifacts outside of the repository. The artifactLinkPublisher task enables you to store a link in the repository, which points to your http or ftp server where your large artifacts are stored.

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

componentName

The specific component to associate with this contribution.

No

contentType

The type of the artifact. If not specified, it is set to application/unknown.

No

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

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

verbose

Specifies more message output. The default is false.

No

Note: Files with text content, such as contentType is text/plain or text/xml, are converted to UTF-8 encoding before being stored in the repository.

Example

<artifactFilePublisher repositoryAddress="${repositoryAddress}"
		                       userId="${userId}"
		                       password="${password}"
		                       buildResultUUID="${buildResultUUID}"
		                       filePath="download.zip"
		                       label="a download" />

Feedback

Did this help? You can provide feedback at Jazz.net (registration required): Comment in the forums or submit a bug