如何通过命令创建/推荐ClearCase基线? [英] How to create/recommend ClearCase baseline via commands?

查看:78
本文介绍了如何通过命令创建/推荐ClearCase基线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Jenkins allows to add a build step that executes Windows Batch Commands. What would be the commands to create and recommend a ClearCase baseline?

该流只有一个分量.基线应该进行所有活动,因此不能选择活动.

The stream has only one component. The baseline should take all activities, so no activity selection.

命令

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

推荐答案

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

If you can execute cleartool command, you would recommend a baseline using 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.

另请参阅"删除并重新创建UCM基准":

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

这篇关于如何通过命令创建/推荐ClearCase基线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆