clearcase

Jenkins creating a view in ClearCase

孤街浪徒 提交于 2019-12-06 01:14:13
I'm working on an automatic build using Jenkins and ClearCase and I have a problem. I wrote a batch script to create a view in ClearCase using the cleartool command mkview. When I execute the script by clicking on it, everything works, the view is created in ClearCase. But when I launch the script via Jenkins, I have the following errors : C:\Program Files\Jenkins\workspace\JenkinsLecon1> "C:\Program Files\IBM\RationalSDLC\ClearCase\bin\cleartool.exe" mkview -sna -tag AUTOBUILD_VIEW_TEST1_CFW_INFRA_V5.10_Dev -str CFW_INFRA_V5.10_Dev@\projects -host sasla15001 -hpath d:\ClearCase_Storage\views

ClearCase Remote Client CLI?

天涯浪子 提交于 2019-12-06 00:55:17
I'm struggling with using ClearCase at my current job and it's a REAL pain, considering that we were using CVS last year. I'm trying to make a build server that downloads the code from ClearCase, compiles it and generates all the distributions. The build server must be RHEL5 and the ClearCase server is a Windows machine, so I don't think using normal ClearCase client would be an option. Is there any possible way of having a ClearCase CLI client that just downloads the code? I'm looking into CCRC but it seems that has no CLI interface. I also looked into IBM page but it needs a "CCSHARED"

ClearCase Common Workflow Example

ε祈祈猫儿з 提交于 2019-12-06 00:31:12
I am working with ClearCase and I am very new to the tool. I find it confusing and cumbersome compared to other source control, like git with svn, for example. I was wondering if someone could walk through a typical workflow. So right now we have a main integration stream, then a child stream on that, then from there child streams for each project. Use Case 1: I check in a file and want everyone to get changes. I have to first add to ClearCase or check in, then I have to deliver to each stream above me (twice), then I would create a baseline and do a rebase to cascade the changes back down. Is

Script to get a file's version in clearcase

杀马特。学长 韩版系。学妹 提交于 2019-12-06 00:23:56
I would like to get a file's clearcase version by means of a script . Is that possible? Thank you. VonC The surest way to get the version of a file is to: use the CLI command ' cleartool ' combine it with the fmt_ccase options available for a cleartool describe command. cleartool descr -fmt "%Vn" myFile That way, no need to parse anyhting: if this is a versioned file, the result won't be an empty one. cleartool descr -fmt "\tElement: %-13.13En Version: %Vn\n" util.c Element: util.c Version: /main/rel2_bugfix/1 Note: if the file is CHECKEDOUT, you might want to add the option -pred (predecessor

Why the ClearCase UCM plugin in Jenkins is unable to find any baseline?

a 夏天 提交于 2019-12-05 22:41:10
I'm trying to set up Jenkins (v1.47) to build a project using the ClearCase UCM (v1.1.2) plugin . With the following config (names changed to protect the innocent): Stream: project_dev_build@\company_pvob<br/> Component: project_tools@\company_pvob<br/> Promotion level: INITIAL I get the following output: [CCUCM] * Stream: project_dev_build@\company_pvob [CCUCM] * Component: project_tools@\company_pvob [CCUCM] * Promotion level: INITIAL [CCUCM] Removed 45 of 45 Baselines. [CCUCM] No valid baselines found I can see in my ClearCase client that there are exactly 45 baselines, all in the INITIAL

When commiting projects should I include .project & .classpath?

你离开我真会死。 提交于 2019-12-05 20:38:15
When I commit a web appliction to source control should I also include the .project & .classpath files ? I don't think it should make any difference either way as other users who use the project should have the same project settings ? This is the sort of question that gets people bent out of shape in a debate that never ends. You basically have two camps: Only put source code into the source control system. Each developer chooses their own IDE and manages their own project configuration. Setting up your IDE after getting source code from the repository will be tricky. If one dev changes

Find all files modified in a specific ClearCase branch?

自作多情 提交于 2019-12-05 20:29:43
Is there a way I can create a view that will give me a snapshot of all the files modified in a specific ClearCase branch? For example, say I have two branches: product_1.0_dev product_migration_1.0_dev The second branch is conceived as a testing ground for upgrading our core framework dependencies. I know that if I modify a file in product_migration_1.0_dev, then I will have a \1 version under this branch, so there has to be a way to write a load rule to get this info easily into a snapshot. Any ideas? That would be a selection rule (not a load rule) element * .../product_migration_1.0_dev

Maven, Hudson and Dynamic Clearcase Views

别说谁变了你拦得住时间么 提交于 2019-12-05 20:14:53
This led on from the question about asking if Apache Maven and IBM Rational ClearCase integrated well. Thought I should write up what I found out - will require various edits, but I shall eventually get round to adding it all I hope. Environment ClearCase - Version 7.0.1.2 of ClearCase. Maven - All of them, from the Maven website . Hudson - Version 1.307 downloaded straight from the Hudson website Questions Does Maven run from a VOB? I installed all the versions of Maven2 into a VOB 'stacked', i.e. I added Version 2.0 - labelled it, locked the label - then added 2.0.1 on top. To prevent there

ClearCase; How to make a baseline with cleartool

最后都变了- 提交于 2019-12-05 20:09:13
I am currently using ClearCase over a remote network and it is painfully slow. It takes forever just to browse to the stream that I want to make a baseline of. Is there a quick, easy, and safe way to make a baseline from the cleartool interface of a specific stream? Thanks, Ian VonC The basic command, from cleartool man mkbl : cleartool mkbl -view anUCMView aBaselineName You need a view associated to your target Stream to apply the baseline. I recommend using the -full option, in order to create a full baseline (rather than an incremental one by default). Using a snapshot or a dynamic view for

Create label with clearcase

三世轮回 提交于 2019-12-05 20:07:20
I would like to create a label from anywhere by explicitly specifying the VOB name. Unfortunately no matter how I specify my VOB I always get this error: $ cleartool mklbtype -global -nc MyVOBName:MY_LABEL_NAME cleartool: Error: Invalid name: "MyVOBName:MY_LABEL_NAME". cleartool: Error: Unable to create label type "MyVOBName:MY_LABEL_NAME". Or even: $ cleartool mklbtype -global -nc -vob MyVOBName MY_LABEL_NAME cleartool: Error: Unrecognized option "-vob" Usage: mklbtype [-replace] [-global [-acquire] | -ordinary] [-pbranch] [-shared] [-c comment | -cfile pname | -cq | -cqe | -nc] label-type