Clearcase Find checkouts - and uncheckout the elements

Hi

Before a new build, I am trying to find all checked out elements in a specific view, and then un-checkout them.

Earlier I have done this by the dos command:

for /f %i in ('cleartool lsco -cvi -sh -r \myVOB') do cleartool unco -rm %i

This does not work in FinalBuilder. I have tried to escape the %'s, but still no success.

I have tried to do the same operations with actions. I begin with the "Cleartool Find Checkouts" action, but then I don't know what to do with the output. I have tried to put it into a variable, but I can not iterate the files in a variable. I have tried using text files, find/replace actions and all sort of things. I really think it would be cool using FB actions and not having to use an external script.

How can I use the output from Find Checkouts to do an uncheckout on the files?

 

Regards,

Magnus Göransson

 

Hi Magnus,

There shouldn't be any reason you can't do the same using the ClearCase actions, I've attached a project which should be doing the same as the script you've supplied.

Regards,
Paul.

ClearCaseUndoCheckouts.fbz6 (2.148 KB)