Anyone have SCM poll trigger working with dynamic base clearcase view on windows?

465 views
Skip to first unread message

Greg Moncreaff

unread,
Apr 16, 2013, 12:23:13 PM4/16/13
to jenkins...@googlegroups.com
I've tried
 
This plugin makes it possible to retrieve files from a ClearCase SCM using a configspec.
1.3.14
 
the ctlshistory command always says there are no changes.
when I remove the "fmt" stuff and run the same command, I see changes
 
 
The Simple Clear Case Dynamic plugin
 
this also has trouble with the fmt commands, but instead of quotes, the log shows pipes?
 
 
I've had success with base clearcase on linux, is something not windows aware/friendly?
 
clearcase version is 8.0.0.x
1.2.2

Greg Moncreaff

unread,
May 1, 2013, 6:48:14 PM5/1/13
to jenkins...@googlegroups.com
These are the settings that worked for me, FINALLY!
 
Advanced Project Options
  1. Check Use Custom Workspace
  2. For directory enter the path that matches the load rules in next section, e.g. Z:\MY_VOB\MY_STUFF
  3. Check Quiet period
  4. For Quiet period time enter 60. Since Clearcase doesn't support atomic changesets, you want to give a checkin time to finish, (e.g. no changes in 60 seconds) before really letting the job run.

Pick Base Clearcase

  1. For view tag use the view you defined, e.g. jenkins_BRANCH_NAME
  2. For view path use M:\
  3. For config spec enter something, doesn't matter not used
  4. For load rules pick the part of clearcase that contains what is interesting (what you will trigger on), e.g. \MY_VOB\MY_STUFF
  5. For Branch(es) enter the branch name that applies, for e.g. main or whatever. This is so SCM polling changes are filtered to the branch of interest.
  6. Make sure advanced options is visible
  7. Check use dynamic view
  8. For view root use M:\
  9. Make sure do not reset config spec is checked

Pick Build Trigger

  1. Pick poll SCM
  2. Enter a cron schedule, e.g. every 10 minutes would be */10 * * * *

Samuel Mackrill

unread,
Jun 10, 2013, 7:20:25 AM6/10/13
to jenkins...@googlegroups.com

Greg, 

Thanks, following this has at least got the polling stated. However it never sees any changes. My polling log looks like this: 

Started on 10-Jun-2013 11:10:22 
[workspace] $ cleartool lsview sam.mackrill_PBS_E3D_CI 
* sam.mackrill_PBS_E3D_CI \\ukcamd3832\views\sam.mackrill_PBS_E3D_CI.vws 
[workspace] $ cleartool startview sam.mackrill_PBS_E3D_CI 
[workspace] $ cleartool lsview sam.mackrill_PBS_E3D_CI 
* sam.mackrill_PBS_E3D_CI \\ukcamd3832\views\sam.mackrill_PBS_E3D_CI.vws 
[workspace] $ cleartool startview sam.mackrill_PBS_E3D_CI 
[m_] $ cleartool lshistory -all -since 10-jun-13.10:03:23utc+0000 -fmt '\"%Nd\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \n%c\n' -branch brtype:e3d_2.1_explorer1_ukcam -nco pdms009\PDMSNet\Aveva.Core.PBS 
Done. Took 0.79 sec 
No changes 

If I try and run the cleartool command manually then it fails because the -fmt needs double quotes ... 
If I replace the single quotes with doubles then it works. 

any insights gratefully received. 

-- 
Sam


Greg Moncreaff

unread,
Jun 10, 2013, 3:38:48 PM6/10/13
to jenkins...@googlegroups.com
 
1.  The string that shows up in the poll log and what works on the cmd line may not be the same.  There could be some quote escaping needed.
 
2.   What I think you absolutely need to work is
2.a  view tag and view name must be exactly same thing, in your case "sam.mackrill_PBS_E3D_CI"
2.b  the load rules must be fully qualified path without drive letter
 
if your view is mounted on "M:\"
and you can access the part of SCM you care about as "M:\sam.mackrill_PBS_E3D_CI\pdms009\PDMSNet\Aveva.Core.PBS"
 
then your view root should be "M:\"
then your load rule should be "\pdms009\PDMSNet\Aveva.Core.PBS"

 


Samuel Mackrill

unread,
Jun 11, 2013, 5:16:18 AM6/11/13
to jenkins...@googlegroups.com
Thanks, I have triple checked everything and they match your suggestions, still no joy. I am suspecting it could be because we are on an ancient version of Clearcase (7.1.2.4) or due to how the views are configured. 


I have written a custom perl script that triggers fine on CC changes so it must be possible!
Perhaps I need to raise a defect and contact the plugin authors to get this sorted?

That or learn some Java :)



Greg Moncreaff

unread,
Aug 7, 2013, 1:34:55 PM8/7/13
to jenkins...@googlegroups.com
 
had a cut & paste
 
view path and view tag must be set exactly the same !!!
 
    1. For view tag use the view you defined, e.g. jenkins_BRANCH_NAME
    1. For view path use the view you defined, e.g. jenkins_BRANCH_NAME

    Amit Dar

    unread,
    Jul 27, 2017, 3:08:24 AM7/27/17
    to Jenkins Users, mon...@gmail.com
    Hi,

    I read this thread several times, and still no luck on my end.
    my clearcase plugin is detecting the changes properly, but reports "No Changes" at the end.

    are you guys till alive and available? :)
    Reply all
    Reply to author
    Forward
    0 new messages