1

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.

Commands

cleartool mkbl -view myViewName "Test"  // created baseline Test.150
user2984213
  • 119
  • 10

1 Answers1

0

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.

See also "Remove and recreate UCM baselines":

cleartool chstream -recommended BL1@\ProjectVOB,BL2@\ProjectVOB stream:stream-name@\ProjectVOB
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • When I send a request to create a baseline "Test" via mkbl, server adds "Test.150". Can I determine the name of the baseline for the chstream or should I use time to generate a unique baseline name for mkbl? – user2984213 Mar 24 '15 at 19:02
  • @user2984213 you could at least check the latest baselines: http://stackoverflow.com/a/8132683/6309. Thats works for a given component too: http://stackoverflow.com/a/16574208/6309 – VonC Mar 24 '15 at 19:05