# UCM ClearCase polling: no change detected even though changes have occurred

#### Details

• Type: Bug
• Status: Closed
• Priority: Major
• Resolution: Fixed
• Component/s:
• Labels:
None
• Environment:
OS: Windows XP
• Similar Issues:

#### Description

Hello,

I am currently using Hudson 1.341 and ClearCase plugin 1.1.1.

My job configuration is as follows (I have attached the full config.xml, and paste here what I guess is most relevant):
<scm class="hudson.plugins.clearcase.ClearCaseUcmSCM">
<viewName>stromp_be_builc</viewName>
<excludedRegions></excludedRegions>
\be_rec\access\
\be_rec\be\
\be_rec\buildservices\
\be_rec\uf\
\be_rec\sef\
<useDynamicView>false</useDynamicView>
</scm>

The last UCM ClearCase access logs looks something like:

Started on Jan 21, 2010 10:26:57 AM
[stromp_be_builc] $cleartool pwv -root D:\java\hudson\jobs\stromp_be_test\workspace\stromp_be_builc [stromp_be_builc]$ cleartool lshistory -all -since 20-jan-10.10:21:30utc+0000 -fmt '\"%Nd\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \"%[activity]p\" \n%c\n' -branch brtype:jcp_v13.1_be_int -nco be_rec\config\ be_rec\access\ be_rec\admins\ be_rec\be\ be_rec\buildservices\ be_rec\uf\ be_rec\sef\ be_rec\jwash\

Done. Took 4.7 sec
No changes

I had a look at issue 3666 (http://issues.jenkins-ci.org/browse/JENKINS-3666) and it looks very similar to the one I am currently having.

Do you have any idea of why this happens? Is there a config issue on my job?

Sébastien Tromp

#### Attachments

1. config.xml
3 kB

#### Activity

Hide

Configuration of my job.

Show
daedin added a comment - Configuration of my job.
Hide
Andrew Bayer added a comment -

The problem is caused by your load rules ending in slashes/backslashes - we append slashes/backslashes to each load rule in the regular expression we use to determine whether a file in the lshistory output is under one of the load rules. I'll have a fix for this in 1.1.2, but in the meantime, you can just remove the trailing slashes/backslashes (yeah, I can never remember which are slashes and which are backslashes) from your load rules and you should be fine.

Show
Andrew Bayer added a comment - The problem is caused by your load rules ending in slashes/backslashes - we append slashes/backslashes to each load rule in the regular expression we use to determine whether a file in the lshistory output is under one of the load rules. I'll have a fix for this in 1.1.2, but in the meantime, you can just remove the trailing slashes/backslashes (yeah, I can never remember which are slashes and which are backslashes) from your load rules and you should be fine.
Hide

Code changed in hudson
User: : abayer
Path:
trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java
https://hudson.dev.java.net/source/browse/hudson/trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java?view=diff&rev=26188&p1=trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java&p2=trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java&r1=26187&r2=26188
trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMDummy.java
https://hudson.dev.java.net/source/browse/hudson/trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMDummy.java?view=auto&rev=26188
trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMTest.java
https://hudson.dev.java.net/source/browse/hudson/trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMTest.java?view=diff&rev=26188&p1=trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMTest.java&p2=trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMTest.java&r1=26187&r2=26188
trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ucm/UcmHistoryActionTest.java
https://hudson.dev.java.net/source/browse/hudson/trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ucm/UcmHistoryActionTest.java?view=diff&rev=26188&p1=trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ucm/UcmHistoryActionTest.java&p2=trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ucm/UcmHistoryActionTest.java&r1=26187&r2=26188
http://jenkins-ci.org/commit/26188
Log:
[FIXED JENKINS-5342] Load rules ending in slash or backslash were never matching against checkins from lshistory - fixed and added test for this as well as changes to ClearCaseUcmSCMDummy for use in other tests

Show
SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java https://hudson.dev.java.net/source/browse/hudson/trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java?view=diff&rev=26188&p1=trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java&p2=trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java&r1=26187&r2=26188 trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMDummy.java https://hudson.dev.java.net/source/browse/hudson/trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMDummy.java?view=auto&rev=26188 trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMTest.java https://hudson.dev.java.net/source/browse/hudson/trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMTest.java?view=diff&rev=26188&p1=trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMTest.java&p2=trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMTest.java&r1=26187&r2=26188 trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ucm/UcmHistoryActionTest.java https://hudson.dev.java.net/source/browse/hudson/trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ucm/UcmHistoryActionTest.java?view=diff&rev=26188&p1=trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ucm/UcmHistoryActionTest.java&p2=trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ucm/UcmHistoryActionTest.java&r1=26187&r2=26188 http://jenkins-ci.org/commit/26188 Log: [FIXED JENKINS-5342] Load rules ending in slash or backslash were never matching against checkins from lshistory - fixed and added test for this as well as changes to ClearCaseUcmSCMDummy for use in other tests
Hide

Removing the slashes (guess these are normal slashes?) indeed solves my issue.
Thanks!

Show
daedin added a comment - Removing the slashes (guess these are normal slashes?) indeed solves my issue. Thanks!

#### People

• Assignee:
Andrew Bayer
Reporter:
daedin