Hello all,

I can i create a file with groovy in remote slave machine

if(build.workspace.isRemote())
            {
                channel = build.workspace.channel;
            }

            String fp = new hudson.FilePath(channel, 
build.workspace.toString() + "/env.properties")
            
            if(fp != null)
            {
                            
                String str = "test";
                fp.append(str); //writing to file
                versionString = fp.readToString(); //reading from file
            }

But append will not work does anybody now how to overcome this?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/67923dac-8850-4090-b51a-686ac3ca2fc0%40googlegroups.com.

Reply via email to