When I display the "Path" and the "PATH" variables, this was the result
Original_Path
The solution was redefine the PATH enviorement variable, like this
environment {
PATH = "C:\WINDOWS\SYSTEM32"
}
@JustAProgrammer aske me if C:WINDOWSSYSTEM32 was in the PATH of my Windows machine, and that is correct, but seems like Jenkins master do not know the slave's Windows Path.
I resolve my issue, but I still looking for a complete solution, I need to set the PATH enviorement variable with ALL the path, no only C:WINDOWSSYSTEM32
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…