update_baseline_record.pl

The update_baseline_record.pl script is an example of how to use the DevOps Code ClearCase® API to update an ALMBaseline record.

The update_baseline_record.pl script updates an existing ALMBaseline record. The script requires a UCM baseline with a set promotion level, and PVOB name to be passed to it. The script reads the status of the UCM baseline and updates the corresponding ALMBaseline record field values for Promotion Level and Obsolete.

If the UCM promotion level is Rejected or the Obsolete field is set, the ALMBaseline record is not used as a candidate for the comparison run by the create_baseline_record script.

The DevOps Code ClearCase UCM baseline promotion levels must match with values in ALM. (For example, the Rejected promotion level must be used in DevOps Code ClearCase to mark a bad baseline.) ALM Baseline scripts depend on the promotion value to be defined and use it for creating (or refusing to create a baseline if the promotion level is Rejected) ALMBaseline records and correctly populating the activities list by doing a comparison with the previous baseline.

The script can be used from a command line build automation process and should not be modified. The script has a -help option for information on all of the command line options.