It happens because Jenkins is not aware about the shell path.
In my case the solution was:
In Manage Jenkins → Configure System → Shell, set the shell path as
C:\Windows\system32\cmd.exe
After doing this change, it works for me.
Hope it helps!
It happens because Jenkins is not aware about the shell path.
In my case the solution was:
In Manage Jenkins → Configure System → Shell, set the shell path as
C:\Windows\system32\cmd.exe
After doing this change, it works for me.
Hope it helps!