clearcase-automation

Java ClearCase Update on a HTTPS Server

我只是一个虾纸丫 提交于 2021-02-19 07:18:07
问题 I am trying to automate ClearCase, so I can do automatic building. The first step is to update a view by script. I am trying this with the following Java code: StpProvider provider = (StpProvider) ProviderFactory.createProvider( CcProvider.NETWORK_PROVIDER_CLASS, callback); provider.setServerUrl("https://..."); CcProvider m_provider = provider.ccProvider(); m_provider.registerTrustManagerCallback(callback); File viewRoot = new File("D:\\Views\\..."); StpLocation viewLocation = provider

Create ClearCase View using CAL

一世执手 提交于 2019-12-24 06:35:00
问题 I'm trying to create a new view in CAL. I know that I can use the IClearTool interface to set up the view via an appropriate command line, but am wondering if there is also a way to do it via the IClearCase interface. The documentation suggests that it's not possible, but I'd like to be sure. :) 回答1: No I didn't see any obvious way to create a view other than using a cleartool command. This old example is actually using IClearCase ... to get Cleartool : ClearCase.ClearTool CT = new ClearCase

ClearCase Find files pointing to version 0

走远了吗. 提交于 2019-12-23 03:35:06
问题 I'm trying to find a list of fiels pointing to Version 0 in a view. I have tried several options with the find command and could get the output that i wanted. Can someone help/direct me here? Any help is much appreciated. Thanks. 回答1: You can do that for a given branch, as I mention in "Command to delete branches of Clearcase element with “0” versions": cleartool find -avobs -branch'{ brtype(mybranch)&&! (version(.../mybranch/1))}' -print You can replace mybranch by the name of a stream for

Dynamic views of ClearCase not integrating in Jenkins

烈酒焚心 提交于 2019-12-08 09:48:45
问题 We use ClearCase as our Version Control Tool. While Integrating Dynamic view to Jenkins in my job at Execute Shell, it is not getting integrated and throwing errors. My Commands at Execute Shell: /usr/atria/bin/cleartool setview johns /usr/atria/bin/cleartool catcs cd /vob1/pts/ ls pwd First thing, it is not identifying the cleartool path and view. Secondly, it is not entering into VOB ( /vob1/pts ). None of the commands working ... like pwd and ls . 回答1: Don't use cleartool setview (as I

I have ant script which works for clearcase. Can any one help me to convert it to GIT

こ雲淡風輕ζ 提交于 2019-12-08 08:45:22
问题 I am migrating one application from clear case to GIT. A build script is written to increment build number and it is written with respect to clear case. And now I have to make it work for GIT. Anyone kindly help me to modify below code to make it work for GIT. I have changed the executable path to GIT.exe. So I just help to convert clear case commands to GIT. <target name="decBuildNo"> <trycatch property="exception"> <try> <exec dir="${basedir}\calcBuild" executable="${cleartool}" failonerror

Add line to ClearCase config

余生颓废 提交于 2019-12-08 07:54:31
问题 I am running a job on Jenkins which is used to create a view on ClearCase and the ClearCase view creates the default config spec. I want to edit the config spec by adding some more lines to it but I don't want to edit it manually every time. So I am looking to add some script to Jenkins so that it can edit the configspec every time when it runs the job. Is there anyone how is clear case expert who can task it out. 回答1: Once your ClearCase view is created you need to get its config spec as a

deliver merge automatic

假装没事ソ 提交于 2019-12-08 05:16:10
问题 My Requirement is regarding clearcase delivery: I want to automate delivery(no manual intervention/no deliver failure) process: While delivering - if there is any merge issue 1.if CC is able to merge files, its good- let it merge, 2.if CC is not able to merge - i don't want it to fail, instead lets not merge that particular file(revert merge for that file), proceed with next files. 3.List the files that are skipped, so that i can manually merge later. i doubt we can do this in a single step,

clearcase symbolic link file not visible from a snapshot view

本小妞迷上赌 提交于 2019-12-08 03:33:11
问题 I have created a symbolic link (see below) to a version controlled file from a different vob ( VOB_II ) and the file is visible from a dynamic view whereas it’s not visible from the UCM snapshot view. A.txt --> ..\..\..\VOB_II\SampleDir\A.txt I have the following selection and load rules. element \VOB_II\SampleDir\A.txt ...\branch1\LATEST load \VOB_II\ SampleDir Any ideas why the file is not getting loaded in the snapshot view? I could not figure out what’s wrong. Any help or inputs are much

Powershell to do Clearcase checkin ,checkout,find command?

强颜欢笑 提交于 2019-12-08 02:28:00
问题 How to do check-in /check-out /Find and etc operation in Clearcase UCM using powershell. Is there any way custom cmd-lets are available for this? 回答1: 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

Add line to ClearCase config

三世轮回 提交于 2019-12-07 12:35:31
I am running a job on Jenkins which is used to create a view on ClearCase and the ClearCase view creates the default config spec. I want to edit the config spec by adding some more lines to it but I don't want to edit it manually every time. So I am looking to add some script to Jenkins so that it can edit the configspec every time when it runs the job. Is there anyone how is clear case expert who can task it out. Once your ClearCase view is created you need to get its config spec as a file with cleartool edcs cd /path/to/view cleartool catcs > cs You need to adds your selection rules before