setWorkspaceOwner

The setWorkspaceOwner task changes ownership of the specified workspace.

The following table describes setWorkspaceOwner attributes.

Attribute Description Required

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 for authentication to the repository. Requires password or passwordFile to be set.

Yes

certificateFile

The path to the file that contains the user's login certificate for authentication. Requires password or passwordFile to be set. You can specify certificateFile or repositoriesFile, but not both.

No

password

Password for the user ID for authentication to the repository. Either password or passwordFile can be provided, but not both.

No

passwordFile

The password file to use for authentication to 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. Either password or passwordFile can be provided, but not both.

No

smartCard

Whether to use the connected smart card for authentication (true or false). Requires userId to be set. For more information about smart card authentication, see Connecting to repositories and project areas.

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

verbose

Specifies more message output. The default is false.

No

owner

The userid of the new owner of the workspace.

Yes

property

The name of the ant property in which to return the workspace name.

No

public

It sets the read-scope of the workspace. Specify true to set the workspace read-scope to public. Specify false to set the workspace read-scope to private. This attribute is optional. If the attribute is not specified, the read-scope of the workspace is not changed.

No

workspaceUUID

The UUID of the workspace for the build. The value of this attribute is typically ${team.scm.workspaceUUID} because the property is build-in when using the Jazz Build Engine.

Yes

Note: Any workspace UUID might be specified, not just the UUID of the build workspace.

Example

Set the owner of a workspace

<target name="main">

	<im:setworkspaceowner
		repositoryAddress="${repositoryAddress}"
		userId="${userId}"
		passwordFile="${passwordFile}"
		owner="djreilly@us.ibm.com"
		property="my.property"
		public="false"
		workspaceUUID="${team.scm.workspaceUUID}"
	/>
	<echo>${my.property}</echo>

</target>

video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki