Run one TCR cycle and exit
When used in "one-shot" mode, TCR executes instantaneously one TCR cycle without waiting for any file system change, then exits.
The return code of TCR "one-shot" is one of the following:
RC | Meaning |
---|---|
0 | Build and Test Passed and changes were successfully committed |
1 | Build failed |
2 | Build passed, one or more tests failed, and changes were successfully reverted |
3 | Error in configuration or parameter values |
4 | Error while interacting with the Version Control System |
5 | Any other error |
tcr one-shot [flags]
-h, --help help for one-shot
-p, --auto-push enable VCS push after every commit
-b, --base-dir string indicate the directory from which TCR is looking for files (default: current directory)
-c, --config-dir string indicate the directory where TCR configuration is stored (default: current directory)
-d, --duration duration set the duration for role rotation countdown timer
-g, --git-remote string name of the git remote repository to sync with (default: "origin")
-l, --language string indicate the programming language to be used by TCR
-m, --message-suffix string indicate text to append at the end of TCR commit messages (ex: "[#1234]")
-o, --polling duration set VCS polling period when running as navigator
-P, --port-number int indicate port number used by TCR HTTP server in web mode (experimental) (default: 8483)
-t, --toolchain string indicate the toolchain to be used by TCR
-T, --trace string indicate trace options. Recognized values: none (default), vcs or http
-r, --variant string indicate the variant to be used by TCR: relaxed (default), btcr, or introspective
-V, --vcs string indicate the VCS (version control system) to be used by TCR: git (default) or p4
-w, --work-dir string indicate the directory from which TCR is running (default: current directory)
- tcr - TCR (Test && Commit || Revert)