I have configured a Jenkins project (test_cvs) via the CVS plugin to checkout a folder; lets call it CVSFOLDER. The build reports the checkout command (on console output) as:
cvs checkout -D "29 Nov 2013 11:40:33 -0800" -d test_cvs CVSFOLDER
It takes 20 minutes for this checkout to complete. If I run the same command manually on the same machine and folder where Jenkins is running, it takes 4 minutes. Similarly, if I run the same command in a post-build script in Jenkins, it takes 4 minutes.
Does anyone know the reason that checking out via the CVS plugin takes 5x the time?
Thanks.
The Jenkins CVS plugin integrates Jenkins with the Concurrent Versions System using a modified version of the Netbeans cvsclient. Refer to the CVS manual for more details about the Concurrent Versions System.
JENKINS-7430, JENKINS-8875 Fix tagging on slave servers. JENKINS-3035 Added option to move tag if it already exists (cvs (r)tag -F). JENKINS-7851 Mark build as unstable if the tag command fails. Removed "-D" from "cvs rtag" command when tagging branches. Resolves issues JENKINS-2337, JENKINS-2553, JENKINS-2591,
For example, to checkout the example-tutorial module, change to your work directory, and execute the following command: A directory called example-tutorial/ is created in the current directory. If a branch name is not specified when checking out a module, it is referred to as the HEAD of the CVS module.
You removed the file with the cvs remove command but have not yet committed the removal. A newer version of the file is on the server and needs to be retrieved. Even though the status includes the word checkout, it really means that you need to update your files with the cvs update command.
I guess the answer is because Jenkins uses it's own built in CVS client.
There are a few related open issues for this:
https://issues.jenkins-ci.org/browse/JENKINS-18539
https://issues.jenkins-ci.org/browse/JENKINS-18330
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With