ClearCase [cleartool] commands error messages and error handling

末鹿安然 提交于 2019-12-08 03:16:24

The official cleartool documentation is on ibm.com:

As mentioned in the cleartool page, in interactive mode, cleartool -status returns the status (0 or 1) of each cleartool subcommand executed.
So in non-interactive mode:

The exit status from single-command mode depends on whether the command succeeded (zero exit status) or generated an error message (nonzero exit status).

But if you want to see other API examples, most Build Schedulers have a ClearCase API, like Jenkins: see for instance "simpleclearcase/ClearTool.java" in the SimpleClearCase-Plugin.

See an example of "exit status catching" in Java at simpleclearcase/ClearTool.java#L381-L386

Note that changes with ClearCase 8.X (ClearTeam), which has a CCRC (ClearCase Remote Client) API rcleartool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!