AddContentToSWBuild
The AddContentToSWBuild command adds content to an object by querying a URL or by uploading a local file on the disk. User credentials are not required to add content from a URL.
Command-Line Syntax
java —jar RBMWebServiceCore.jar —ServiceName AddContentToSWBuild —ContainerType —ContainerName —ObjectName [—Location] —Content —Filename [—IsPrimary] [-Revision]
Argument
Description
—ContainerType
One of LIBRARY, PRODUCT, or PROJECT.
—ContainerName
Name of the container.
—ObjectName
Name of the object to which the attachment is added.
—Location
Location of the object in the specified container.
—Content
File content to add to the object. This can be either a URL of the file or a local file on the disk.
—Filename
Name of the file to be attached to the object.
—IsPrimary
Either true or false. If no value is specified, it is considered as a secondary attachment.
—Revision
Revision ID. If no revision is specified, the latest iteration is used.
Configuration File Template
<service>
<ServiceName>AddContentToSWBuild</ServiceName>
<ContainerType>...</ContainerType>
<ContainerName>...</ContainerName>
<ObjectName>...</ObjectName>
<Location>...</Location>
<Content>...</Content>
<Filename>...</Filename>
<IsPrimary>...</IsPrimary>
<Revision>...</Revision>
</service>
Examples
To add primary content to a software build object of name TestSWBld3 in the Test Folder location of the GOLF_CART container by uploading content from a URL, type:
java —jar RBMWebServiceCore.jar —ServiceName AddContentToSWBuild —ContainerType PRODUCT —ContainerName GOLF_CART —ObjectName TestSWBld3 —Location Test Folder —Content //<web_server>/WCIntClearCaseGuide.pdf —Filename Test PDF.pdf —IsPrimary true —Revision A
To add a secondary attachment to a software build object of name TestSWBld4 in the default location of the GOLF_CART container by uploading a local file, type:
java —jar RBMWebServiceCore.jar —ServiceName AddContentToSWBuild —ContainerType PRODUCT —ContainerName GOLF_CART —ObjectName TestSWBld4 —Content D:\temp\SampleFile.txt —Filename TestTestFile.txt
Was this helpful?