Ejemplo: ejecución de los comandos de Software Build Tools desde scripts de compilación personalizados
En los siguientes ejemplos se muestra cómo ejecutar los comandos de Software Build Tools para crear una compilación de software mediante scripts de compilación personalizados:
• java $(Username) $(Password) —jar $(SoftwareBuildtoolsJar) —ServiceName CreateAndUpload —ContainerType PRODUCT —ContainerName $(Container) —Location FPGA/Builds —ObjectType SWBuild —ObjectName $(name)—$(version) -Filename D:/dist_client_windows/auto_test/auto_test_results.txt —IsPrimary false
• java $(Username) $(Password) —jar $( SoftwareBuildtools.jar) —ServiceName UpdateObject —ContainerType PRODUCT -ContainerName $(Container) —ObjectName $(name)—$(version) —Location FPGA/Builds —Attributes RialtoBuildVersion=$(version)\;RialtoBuildLabel=$(label)\;RialtoBuildDate (TODAY)\;RialtoBuildStatus=In Process\;RialtoBuildDescription=$(FullTitle) $(version)
En los siguientes ejemplos se muestra cómo ejecutar distintos comandos de Software Build Tools para cargar contenido a una compilación de software mediante scripts de compilación personalizados:
• java $(Username) $(Password) —jar $(BuildMgrJar) —ServiceName AddContentToSWBuild —ContainerType PRODUCT —ContainerName $(Container) —Location FPGA/Builds —ObjectName $(name)—$(version) —Content D:/LCD/LPC2368.zip —Filename LPC2368.zip —IsPrimary true
• java $(Username) $(Password) —jar $(BuildMgrJar) —ServiceName AddContentToSWBuild —ContainerType PRODUCT —ContainerName $(Container) —Location FPGA/Builds —ObjectName $(name)-$(version) —Content http://<custom_location>/LCD/LPC2368.zip —Filename LPC2368.zip —IsPrimary true
• java $(Username) $(Password) —jar $(BuildMgrJar) —ServiceName UpdateObject —ContainerType PRODUCT —ContainerName $(Container) —ObjectName $(name)—$(version) —Location FPGA/Builds —Attributes RialtoBuildDate=$(TODAY)\;RialtoBuildStatus=Successful
• java $(Username) $(Password) —jar $(BuildMgrJar) —ServiceName LinkBuildToDocs —ContainerType PRODUCT —ContainerName $(Container) —BuildObjectName $(name)—$(version) —BuildObjectLocation FPGA/Builds —DocumentType SWDocument —DocumentName RTOS —DocumentLocation FPGA/Source
• java $(Username) $(Password) —jar $(BuildMgrJar) —ServiceName LinkDefectToBuild —ContainerType PRODUCT —ContainerName $(Container) —BuildObjectName $(name)—$(version) —BuildObjectLocation FPGA/Builds —LinkType SubmittedTo —Adapter bugzilla —DefectID $(defectid1),2,3,4,5