2

I am trying to write a script to deploy asp.net application from Clear Case. I am using Clear Case Remote Client.

How will i start? what is the easiest way?

rick schott
  • 21,012
  • 5
  • 52
  • 81
Amit
  • 197
  • 2
  • 2
  • 8

2 Answers2

0

Personally I'd start by not re-inventing the wheel.

Team City is one such product that can do what you're asking about

http://www.jetbrains.com/teamcity/

Jamie Dixon
  • 53,019
  • 19
  • 125
  • 162
  • Actually, i don't want to use team city. Any other resolution?? – Amit Nov 07 '11 at 18:08
  • Team city does support Clear Case though. Also, I gave Team City as an example saying "one such product is...". – Jamie Dixon Nov 07 '11 at 20:00
  • Still -1. No "such product" would work in the OP's setup (CCRC, which is quite different from ClearCase). – VonC Nov 07 '11 at 21:51
0

CCRC is for accessing code from a "web" ClearCase snapshot view.
Being a light ClearCase installation, you:

  • won't have all the cleartool command which would allow to detect new content (new versions on files) to be updated
  • won't have the easy integration you could have with TeamCity, or Jenkins, or Hudson, ... since they all rely on a cleartool command.
    TeamCity, for instance, has still a pending ticket on CCRC support.

For you, since you don't want/need to use those schedulers anyway, you can start by using the CCRC CLI (rcleartool) in order to:

  • update your ccweb view
  • check if the update has gotten any new versions
  • deploy your app if it has gotten anything new.
rcleartool update [-username user-name][-ser/ver server-url][-pas/sword user-password]
                  [-print] [-ove/rwrite | -nove/rwrite | -ren/ame]
                  [pname ...]

Jenkins currently follows a similar path to plan for CCRC support: ticket 5192:
(and neither Jenkins nor Hudson support CCRC yet)

I'm thinking about which is better the calling of rcleartool as external tool, or develop a teamapi (or as they call now cmapi) based pure java extension.

More details on this IBM article:
"Continuous integration with IBM Rational ClearCase Remote Client"

CI infrastructure

In this general architecture schema for CI with CCRC, my suggestion above (rcleartool update) is illustrated by the link between the CM server and the build server.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • If you like an answer, you should accept it by clicking the checkmark. This will also close the question. –  Dec 20 '11 at 23:11