Build and deploy fresh robot code
build_and_deployBuild FTC TeamCode and deploy only after a successful build, then restart the Robot Controller app to prevent deploying a stale APK.
Instructions
Safest competition-day deployment path: build TeamCode first and only install the APK if that build succeeds, then restart the Robot Controller app. This prevents accidentally deploying a stale APK.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | No | Run a clean build before deployment | |
| serial | No | adb device serial; required when multiple devices are connected | |
| stacktrace | No | Return extended Gradle failure context | |
| projectPath | No | Path to the FtcRobotController SDK project. Defaults to $FTC_TOOLCHAIN_PROJECT_DIR, then the workspace clone made by create_project. | |
| timeoutSeconds | No | Build timeout in seconds (default 600) |