Powershell 执行 Clearcase 签入、签出、查找命令? [英] Powershell to do Clearcase checkin ,checkout,find command?

查看:68
本文介绍了Powershell 执行 Clearcase 签入、签出、查找命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用powershell在Clearcase UCM中进行签入/签出/查找等操作.

How to do check-in /check-out /Find and etc operation in Clearcase UCM using powershell.

有什么方法可以使用自定义 cmd-let 吗?

Is there any way custom cmd-lets are available for this?

推荐答案

为了获得更高级的功能和更快的响应时间,我建议直接通过 COM 访问 CAL API.最好的文档在 \bin\cc_cal.chm 中本地可用.

For more advanced functionality and better response times, I'd recommend accessing the CAL API directly via COM. The best documentation for that is available locally in <ClearCase install dir>\bin\cc_cal.chm.

$cc = New-Object -COM ClearCase.Application
$ccItem = $cc.Version("<absolute path to file/dir>")
$coItem = $ccItem.CheckOut($cc.ccReservedState,"",$false,$cc.Latest,$false,$false)
Write-Output $coItem.IsReserved

这篇关于Powershell 执行 Clearcase 签入、签出、查找命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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