如何通过命令 create/recommend ClearCase 基线?

How to create/recommend ClearCase baseline via commands?

Jenkins 允许添加执行 Windows 批处理命令的构建步骤。创建和推荐 ClearCase 基线的命令是什么?

流只有一个组件。基线应该采取所有活动,因此没有 activity 选择。

命令

cleartool mkbl -view myViewName "Test"  // created baseline Test.150

如果可以执行 cleartool 命令,建议使用 cleartool chstream:

的基线
cleartool chstream -nc -recommend BL1@/vobs/pop_pvob 

Rules for recommending a baseline

You can recommend a baseline for a stream if the baseline is from the stream or the stream's foundation.

For a baseline not from the stream or the stream's foundation, the following rules apply:

  • The baseline must be an ancestor of the stream's foundation baseline and must have been created on the same stream as the foundation baseline.
  • The baseline must be contained in the stream, which means the baseline has been delivered to the stream, or the stream has rebased to the baseline or one of its descendants.
  • The baseline must contain the current recommended baseline, which means it must be a descendant of the current recommended baseline.

You are not required to recommend a baseline for every component in the stream's configuration.

另见“Remove and recreate UCM baselines”:

cleartool chstream -recommended BL1@\ProjectVOB,BL2@\ProjectVOB stream:stream-name@\ProjectVOB