File creation on agent machine


I am planning to move a Jenkins pipeline to agent machine.

I used, def file = new File("C:\\Sharan\\ABC.template")

to create template file on master machine, this code doesn't work on agent machine. How can i create the above template file on windows agent machine?

Thanks in advance,




1 comment

Please sign in to leave a comment.