Интеграция с другими приложениями > Интегрированное управление программным обеспечением > PTC Windchill Integration for Software Build Tools Developer’s Guide (Руководство разработчика по PTC Windchill Integration for Software Build Tools) (на английском языке) > Using the Windchill Integration for Software Build Tools Commands > LinkDefectToBuild
  
LinkDefectToBuild
The LinkDefectToBuild associates a software build with a defect based on the remote defect ID. If no defect is associated with the specified remote defect, an appropriate defect is created.
Command-Line Syntax
java —jar RBMWebServiceCore.jar —ServiceName LinkDefectToBuild —Repository —LinkType —ContainerType —ContainerName —BuildObjectName —BuildObjectLocation —DefectID —Revision
Argument
Description
—Repository
Name of the repository representing a defect-tracking system from which a remote defect can be fetched using the DefectID argument.
—LinkType
Must have one of the values: SubmittedTo or ReportedIn.
—ContainerType
One of LIBRARY, PRODUCT, or PROJECT.
—ContainerName
Name of the container.
—BuildObjectName
Name of the software build object.
—BuildObjectLocation
Location of the software build object in the specified container.
—DefectID
List of comma-separated remote defect identifiers.
—Revision
Build revision ID. If no revision is specified, the latest iteration is used.
Configuration File Template
<service>
<ServiceName>LinkDefectToBuild</ServiceName>
<Repository>...</Repository>
<LinkType>...</LinkType>
<ContainerType>...</ContainerType>
<ContainerName>...</ContainerName>
<BuildObjectName>...</BuildObjectName>
<BuildObjectLocation>...</BuildObjectLocation>
<DefectID>defectID1,defectID2...</DefectID>
<Revision>...</Revision>
</service>
Examples
To associate remote defects in Bugzilla with a software build object submitted in a software build, type:
java —jar RBMWebServiceCore.jar —ServiceName LinkDefectToBuild —Repository com.ptc.bzAdapter01 —LinkType SubmittedTo —ContainerType PRODUCT —ContainerName GOLF_CART —BuildObjectName TestSWBld3 —BuildObjectLocation Test Folder —DefectID 11,12,13 —Revision A
To associate remote defects in Bugzilla with a software build object of a software build, type:
java —jar RBMWebServiceCore.jar —ServiceName LinkDefectToBuild —Repository com.ptc.bzAdapter01 —LinkType ReportedIn —ContainerType PRODUCT —ContainerName GOLF_CART —BuildObjectName TestSWBld3 —BuildObjectLocation Test Folder —DefectID 11,12,13