I'm executing this code:
node('my_windows_slave') {
sh 'ls'
}
In my Windows slave I can properly execute sh
command:
But the pipeline script can't run the .sh
file:
[Pipeline] sh
[D:\workspace\sandbox_pipeline] Running shell script
sh: D:\workspace\sandbox_pipeline@tmp\durable-2d7dd2f8\script.sh: command not found
What I could notice is that this .sh
file is not even created, once I tried with bat
and worked fined.
Any clue what could be the problem?
[UPDATE]
Jenkins somehow can't create the SH
temporary file. Already checked the log, permissions, everything that came to my mind.