Issue Type: Bug Bug
Assignee: Unassigned
Components: cvs
Created: 15/May/13 3:11 PM
Description:

I upgraded to CVS plugin version 2.8 from 1.6, and also ran the 'Manage Old Data' process from the Manage Jenkins screen.

After the update, some projects were not retrieving changes that were committed to CVS and putting them into the workspace. If I clicked on the 'Recent Changes' link in Jenkins for the job, the changes would appear there, but they were not being pulled into the workspace and CVS polling log showed 'no changes'.

For some projects this was not an issue, but for other projects it was. I checked the config files, and some had been updated to the 2.8 format and some still had the 1.6 format. The jobs that had been updated to the 2.8 format were the ones that were not pulling newly committed files into the workspace.

It looks like the bug occurs when the config files use the 2.8 plugin format and the 'Use Update' option is selected (<canUseUpdate>true</canUseUpdate>). I deselected this option, and also selected 'Force clean copy for locally modified files' (<cleanOnFailedUpdate>true</cleanOnFailedUpdate>). The files then began to be correctly updated in the workspace.

Here is a config file example where the 1.6 plugin format is used (and continues working with the 2.8 plugin installed):
<scm class="hudson.scm.CVSSCM" plugin="cvs@1.6">
<cvsroot>:pserver:u...@server.com:/cvsroot/stuff</cvsroot>
<module>ExModule</module>
<canUseUpdate>true</canUseUpdate>
<useHeadIfNotFound>false</useHeadIfNotFound>
<flatten>false</flatten>
<isTag>false</isTag>
<excludedRegions></excludedRegions>
</scm>

And here is a config file example where the 2.8 plugin format is used and the files do not get updated when there is a commit to CVS:
<scm class="hudson.scm.CVSSCM" plugin="cvs@2.8">
<flatten>true</flatten>
<repositories>
<hudson.scm.CvsRepository>
<cvsRoot>:pserver:u...@server.com:/cvsroot/stuff</cvsRoot>
<repositoryItems>
<hudson.scm.CvsRepositoryItem>
<modules>
<hudson.scm.CvsModule>
<localName></localName>
<remoteName>ExJob2</remoteName>
</hudson.scm.CvsModule>
</modules>
<location class="hudson.scm.CvsRepositoryLocation$HeadRepositoryLocation">
<locationType>HEAD</locationType>
<useHeadIfNotFound>false</useHeadIfNotFound>
</location>
</hudson.scm.CvsRepositoryItem>
</repositoryItems>
<compressionLevel>-1</compressionLevel>
<excludedRegions>
<hudson.scm.ExcludedRegion>
<pattern></pattern>
</hudson.scm.ExcludedRegion>
</excludedRegions>
<password>iLig231CAGwVtdt2/P6vseSiX+rCNjWwXG4/sAyjj1c=</password>
<passwordRequired>true</passwordRequired>
</hudson.scm.CvsRepository>
</repositories>
<canUseUpdate>true</canUseUpdate>
<skipChangeLog>false</skipChangeLog>
<pruneEmptyDirectories>true</pruneEmptyDirectories>
<disableCvsQuiet>true</disableCvsQuiet>
<cleanOnFailedUpdate>false</cleanOnFailedUpdate>
<forceCleanCopy>true</forceCleanCopy>
</scm>

after changing to these values in the 2.8 plugin format:
<canUseUpdate>false</canUseUpdate>
<cleanOnFailedUpdate>true</cleanOnFailedUpdate>

it appeared to start working again. I think it was because of the canUseUpdate flag.

Environment: Jenkins 1.510, CVS plugin 2.8, Linux RHEL 5
Project: Jenkins
Labels: plugin cvs update jenkins
Priority: Major Major
Reporter: Joel Wheeler
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to