The problem is solved. I removed the default ‘view’ in the viewpath. The 
resulting echo’s then go as follows:
…
[workspace] $ /bin/bash /tmp/hudson6659938830957760689.sh
viewtag: wscbuild_master_PCP_Tests_hudson
viewpath: /view/wscbuild_master_PCP_Tests_hudson
Parsing POMs
…
The remaining puzzle now is why ‘view’ was ever put there as the default when 
you define a new job. I assumed it referred to the leading component of the 
view directory.

Thanks for the help,

Yo

From: [email protected] 
[mailto:[email protected]] On Behalf Of PEETERS JOHAN (SDV/AVO)
Sent: 13 February 2012 10:12
To: [email protected]
Subject: RE: SCM polling with ClearCase

I am puzzled by your and Greg’s reply:
I added this as a pre-build step

#!/bin/bash
echo "viewtag: $CLEARCASE_VIEWTAG"
echo "viewpath: $CLEARCASE_VIEWPATH"

and here is the relevant section of the resulting run log:

…
[workspace] $ /usr/atria/bin/cleartool mkview -stream 
id817773_2012_03_PCP@/rqpp/projects/CCS_WSC_prj -tag 
wscbuild_master_PCP_Tests_hudson /var/views/wscbuild_master_PCP_Tests_hudson
Created view.
Host-local path: el0966.bc:/var/views/wscbuild_master_PCP_Tests_hudson
Global path:     /net/el0966.bc/var/views/wscbuild_master_PCP_Tests_hudson
It has the following rights:
User : wscbuild : rwx
Group: GG_WSC   : r-x
Other:          : r-x
Attached view to stream "id817773_2012_03_PCP".
[workspace] $ /usr/atria/bin/cleartool startview 
wscbuild_master_PCP_Tests_hudson
[workspace] $ /usr/atria/bin/cleartool setcs -tag 
wscbuild_master_PCP_Tests_hudson -stream
Found mavenVersion 2.2.1 from file 
jar:file:/opt/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties
[workspace] $ /bin/bash /tmp/hudson214772198586489225.sh
viewtag: wscbuild_master_PCP_Tests_hudson
viewpath: /view/view
Parsing POMs
…

Yes, we use dynamic views. This is essential to keep build speed and disk usage 
within reasonable limits.

thx,

Yo

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Vincent Latombe
Sent: 12 February 2012 15:56
To: [email protected]<mailto:[email protected]>
Subject: Re: SCM polling with ClearCase

Hello,

from your logs I'm 'guessing' you are working using a dynamic view. As Greg 
pointed out, when using a dynamic view, view path and view tag must be the same.

Vincent
2012/2/11 Greg Moncreaff <[email protected]<mailto:[email protected]>>
I don't know about streams,
but a similar issue occurs with "base" clearcase

if
   viewPath != viewTag
in configuration


________________________________

***** Disclaimer *****
http://www.belgacom.be/maildisclaimer

Reply via email to