Issue Type: Bug Bug
Assignee: vjuranek
Components: groovy-plugin
Created: 10/Dec/14 7:33 AM
Description:

I have a windows slave. On that slave I have a build, which got "Execute system Groovy script" as a buildstep. I am running a simple script there:
def myFile = new File("C:/abc/abc.cmd")
def fileText = myFile.text
fileText = (fileText =~ /aa/).replaceFirst("bb")
myFile.write(fileText)
and I receive:
FATAL: C:/abc/abc.cmd (The system cannot find the path specified)

However, I am able to execute this script from node script console it runs just fine, so I suppose for some reason script is lucking permissions, when is executed as a build step.

Environment: Jenkins-v1.576 on Windows
Groovy plugin-v1.19
Windows Slaves Plugin-v1.0
Project: Jenkins
Priority: Major Major
Reporter: Dmitrijs Sahlovs
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to