Re: FilePath act fails with an exception

2016-07-13 Thread Jesse Glick
On Wed, Jul 13, 2016 at 3:28 PM, Stuart Rowe wrote: > What's the best way to run groovy code remotely? Something similar to how > the executeGroovy method handles it in >

Re: FilePath act fails with an exception

2016-07-13 Thread Stuart Rowe
What's the best way to run groovy code remotely? Something similar to how the executeGroovy method handles it in https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/util/RemotingDiagnostics.java? I've tried this by implementing a FileCallable in my plugin that takes a

Re: FilePath act fails with an exception

2016-07-13 Thread Jesse Glick
On Wed, Jul 13, 2016 at 1:40 AM, Stuart Rowe wrote: > I've hit the same problem trying to implement a FileCallable in groovy It is possible you cannot make Remoting calls from the script console. Cannot recall offhand. The Groovy runtime’s handling of class loading is

Re: FilePath act fails with an exception

2015-05-25 Thread Daniel Anechitoaie
Just wanting to say thanks. I had the same issue, Googled a little bit and found the answer here. Changing it to MasterToSlaveFileCallable worked. On Monday, April 20, 2015 at 5:23:34 PM UTC+3, Jesse Glick wrote: On Thu, Apr 16, 2015 at 2:49 AM, Sverre Moe sverr...@gmail.com javascript:

Re: FilePath act fails with an exception

2015-04-20 Thread Jesse Glick
On Thu, Apr 16, 2015 at 2:49 AM, Sverre Moe sverre@gmail.com wrote: I changed the code to extend MasterToSlaveFileCallable, but the exception is still the same. No, that is a totally unrelated exception, which smells like a failure to do a clean build. -- You received this message

Re: FilePath act fails with an exception

2015-04-16 Thread Sverre Moe
I changed the code to extend MasterToSlaveFileCallable, but the exception is still the same. Changed: private static class RemoteListDir implements FileCallableSetString { To: private static class RemoteListDir extends MasterToSlaveFileCallableSetString { Caused by: java.io.IOException:

Re: FilePath act fails with an exception

2015-04-15 Thread Jesse Glick
On Tue, Mar 24, 2015 at 1:29 PM, Ulli Hafner ullrich.haf...@gmail.com wrote: You need to implement the new method checkRoles. No, you do not. You just need to use MasterToSlaveFileCallable. -- You received this message because you are subscribed to the Google Groups Jenkins Developers group.

Re: FilePath act fails with an exception

2015-03-25 Thread Sverre Moe
I have added checkRoles within my FileCallable implementation, but it still fails. Though this time with a different message. remote file operation failed: /home/build/jenkins/workspace/myMatrixProject at hudson.remoting.Channel@54e95cec:Development-opensuse-x86_64: java.io.IOException: Unable

Re: FilePath act fails with an exception

2015-03-25 Thread Sverre Moe
Tried the following that got rid of Unable to serialize, but still does not work. Most of the examples I find online for FilePath.act does not work in Script Console. import hudson.FilePath.FileCallable import hudson.remoting.VirtualChannel import org.jenkinsci.remoting.RoleChecker def

FilePath act fails with an exception

2015-03-24 Thread Sverre Moe
Trying the following in Jenkins Script Console: import hudson.FilePath.FileCallable import hudson.remoting.VirtualChannel def jenkinsInstance = jenkins.model.Jenkins.getInstance() def project = jenkinsInstance.getItem(myMatrixProject) def rootProject = project.getRootProject() def someWorkspace