This document is translated from https://source.tizen.org/documentation/articles/gbs-remotebuild.
1. Remote Construction
Use the remotebuild sub-command to push the local git source code to the remote obs server for building. For help on remotebuild sub-commands, use:
$ gbs remotebuild --help
Before using GBS remotebuild, you must prepare a local git repository package. The package directory must exist and a description file exists under the directory. In this description file, GBS uses the package name, version, and tar package format. Before preparing these items, switch to the top directory and run the GBS remotebuild Command, as shown in the following example:
$ gbs remotebuild$ gbs remotebuild -B Tizen:Main$ gbs remotebuild -B Tizen:Main -T home:<userid>:gbs$ gbs remotebuild -B Tizen:Main --status$ gbs remotebuild -B Tizen:Main --buildlog -R <repo> -A <arch>$ gbs remotebuild -B Tizen:Main --include-all
2. Check the status of the constructed log
User options-- BuildlogAnd-- StatusTo view the built log and status.
Step 1: Use GBS remotebuild to submit changes to the remote service and build
Submit the package to the remote serverHome: User: GBS: tizen: MainAnd build tizen: Main.
As follows:
test@test-desktop:~/ail$ gbs remotebuild -B Tizen:Main --include-allinfo: Creating (native) source archive ail-0.2.29.tar.gz from 'c7309adbc60eae08782b51470c20aef6fdafccc0'info: checking status of obs project: home:test:gbs:Tizen:Main ...info: commit packaging files to build server ...info: local changes submitted to build server successfullyinfo: follow the link to monitor the build progress: https://build.tizendev.org/package/show?package=ail&project=home:test:gbs:Tizen:Main
Step 2: Check the build status
# -B or -T options is needed if your target project is not home:user:gbs:Tizen:Maintest@test-desktop:~/ail$ gbs remotebuild --statusinfo: build results from build server:standard i586 buildingstandard armv7el building
As shown above, the first column is the repo name, and the second column is the name of the hardware platform architecture of the target device. EPO/arch can be used to obtain the constructed log information.
Step 3: Read the construction log information of the specified repo/Arch
test@test-desktop:~/ail$ gbs remotebuild --buildlogerror: please specify arch(-A) and repository(-R)test@test-desktop:~/ail$ gbs remotebuild --buildlog -A i586 -R standardinfo: build log for home:test:gbs:Tizen:Main/ail/standard/i586....