2

I am new to ClearCase UCM and my first task in this is to create job in jenkins. So I have installed the ClearCase plugin in jenkins but when try to create a new job, I am not getting any clue on what to fill values for the fields, View Tag, View Path and Stream Selector. Searched a lot on google for an example but couldn't find one.

So could you please give me some examples values or any article which you are aware of which explains this in details?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
GuruKulki
  • 25,776
  • 50
  • 140
  • 201

2 Answers2

1

A "ClearCase UCM job" in Jenkins simply means a job which will use the sources visible (selected) by a (preferable snapshot ones if you are doing some build in it)

That means you nead:

  • an UCM stream which selects the UCM components you need
  • a UCM snapshot view associated to that stream, which will give you the view tag, view path (anywhere you want on the slave) and stream selector (stream:aStream@/vobs/aPVob if unix, stream:aStream@\aPVob if Windows)
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I still didn't understand it. Sorry I am very new to ClearCase. In eclipse I did create a view using the server URL, so is it similar to this in jenkins as well? – GuruKulki Nov 06 '15 at 16:12
  • @GuruKulki you have to create a view indeed. Did you create an UCM view with Eclipse? If so, you can use it in Jenkins. – VonC Nov 06 '15 at 16:14
  • Yes, I did create a UCM view – GuruKulki Nov 06 '15 at 16:14
  • I can see that view in ClearCase Navigator – GuruKulki Nov 06 '15 at 16:15
  • @GuruKulki Then you can use it in Jenkins (if the Jenkins slave is in the same OS as your view) Are you on Windows or Linux as a ClearCase client? And your Jenkins slave, is it on Windows, Linux? What version of ClearCase are you using? – VonC Nov 06 '15 at 16:16
  • I am not sure of the ClearCase version, but jenkins and view both are on Windows – GuruKulki Nov 06 '15 at 16:17
  • When I run the job in jenkins, I get an error as [Test Project] $ cleartool desc -fmt %[found_bls]Xp stream:XYZ@null – GuruKulki Nov 06 '15 at 16:18
  • @GuruKulki ClearCase might use `rcleartool` (http://stackoverflow.com/a/18506213/6309). Check your `PATH`. `@null` is problematic: the stream name should be `stream:XYZ@\aPVob`, with `aPVob` the name of the pvob which has that stream. – VonC Nov 06 '15 at 16:22
  • @GuruKulki If you select the properties of your view in the ClearCase Navigator, you will see the name of its associated stream. – VonC Nov 06 '15 at 16:24
  • @GuruKulki For `rcleartool` `PATH`: http://www-01.ibm.com/support/docview.wss?uid=swg21598728 – VonC Nov 06 '15 at 16:28
  • sorry, I was off from work, couldn't reply on weekends.. Can you please give me some example values for View Tag, View Path and Stream Selector fields? – GuruKulki Nov 09 '15 at 09:32
  • @GuruKulki You can see examples of UCM views in the example section of mkview: https://www-01.ibm.com/support/knowledgecenter/SSSH27_8.0.0/com.ibm.rational.clearcase.cc_ref.doc/topics/ct_mkview.htm (`cleartool mkview -stream java_int@/vobs/core_projects -tag java_int /usr1/views/java_int.vws`). Also in http://www-01.ibm.com/support/docview.wss?uid=swg21121208 (look for examples using -stream). Or in http://www-01.ibm.com/support/docview.wss?uid=swg21152760 (look for the section "Create the Views that will be associated to the streams:") – VonC Nov 09 '15 at 10:08
  • Sorry, I stopped working clearcase and moved to GIT. thanks for your time and information. I will use this once I start clearcase again. – GuruKulki Nov 09 '15 at 11:24
  • @GuruKulki Great choice! I compare ClearCase and git here: http://stackoverflow.com/q/645008/6309 – VonC Nov 09 '15 at 11:25
  • Just one doubt on git, I have a create a local repository on my laptop and did associate it with any remote repo, so just wanted to know, can I create a jenkin job for my local repo? – GuruKulki Nov 09 '15 at 11:41
  • @GuruKulki Sure: as long as your Jenkins job has the path of that git repo, it can populate a Jenkins workspace with the latest of that repo master branch. – VonC Nov 09 '15 at 11:57
  • Thanks VonC for your time and help. I am able to setup the test job on jenkins with GIT local repo – GuruKulki Nov 09 '15 at 12:03
0

The ClearCase UCM Plugin is made specifically to support UCM as opposed to the ClearCase plugin which you're asking to. The ClearCase plugin originally didn't support anything but base ClearCase - and it had it's UCM features glued on along the evolution.

The ClearCase UCM plugin does everything for you. Just specify the steam and the promotion level of the baselines you want to build and the rest is automated from there on. No need to create views first, the plugin will do it for you.

Lakuzz
  • 4,053
  • 1
  • 12
  • 4