[ https://issues.jenkins-ci.org/browse/JENKINS-13161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160498#comment-160498 ]
Alex Lehmann commented on JENKINS-13161: ---------------------------------------- i got the following stack trace, I don't have the correct cvslib source right now, so i cannot check it further ERROR: CVS Command failed: some_file (Permission denied) java.io.FileNotFoundException: some_file (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:194) at java.io.FileOutputStream.<init>(FileOutputStream.java:145) at org.netbeans.lib.cvsclient.file.DefaultFileHandler.createOutputStream(DefaultFileHandler.java:505) at org.netbeans.lib.cvsclient.file.DefaultFileHandler$StreamProvider.createOutputStream(DefaultFileHandler.java:516) at org.netbeans.lib.cvsclient.file.DefaultWriteTextFilePreprocessor.copyTextFileToLocation(DefaultWriteTextFilePreprocessor.java:74) at org.netbeans.lib.cvsclient.file.DefaultFileHandler.writeAndPostProcessTextFile(DefaultFileHandler.java:387) at org.netbeans.lib.cvsclient.file.DefaultFileHandler.writeTextFile(DefaultFileHandler.java:303) at org.netbeans.lib.cvsclient.response.UpdatedResponse.process(UpdatedResponse.java:178) at org.netbeans.lib.cvsclient.Client.handleResponse(Client.java:648) at org.netbeans.lib.cvsclient.Client.processRequests(Client.java:598) at org.netbeans.lib.cvsclient.command.update.UpdateCommand.execute(UpdateCommand.java:347) at org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:710) at hudson.scm.CVSSCM$2.invoke(CVSSCM.java:893) at hudson.scm.CVSSCM$2.invoke(CVSSCM.java:873) at hudson.FilePath.act(FilePath.java:832) at hudson.FilePath.act(FilePath.java:814) at hudson.scm.CVSSCM.perform(CVSSCM.java:873) at hudson.scm.CVSSCM.checkout(CVSSCM.java:757) at hudson.model.AbstractProject.checkout(AbstractProject.java:1212) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468) at hudson.model.Run.run(Run.java:1410) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) ERROR: Cvs task failed Finished: FAILURE > cvs plugin 2.x fails to update readonly checked out files > --------------------------------------------------------- > > Key: JENKINS-13161 > URL: https://issues.jenkins-ci.org/browse/JENKINS-13161 > Project: Jenkins > Issue Type: Bug > Components: cvs > Environment: jenkins 1.456, cvs plugin 2.1, java 1.6.0-31 > Reporter: Alex Lehmann > Assignee: Michael Clarke > Priority: Minor > > I found a migration issue when switching from cvs-plugin 1.6 to 2.x. > The regular cvs client support checking out all files readonly to facilitate > cvs edit/unedit and watchers, apparently this is not supported by the > netbeans cvsclient. > If a job was checked out with the old version of the plugin (1.x), updating > the workspace fails due to > java.io.FileNotFoundException: some_filename (Permission denied) > This is not a big issue since the file permissions can be changed with find, > nevertheless maybe it is possible to change the file handling to change write > permissions before trying to overwrite the files. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira