Jenkins cmd- is not recognized as an internal or external command operable program or batch file
I did a Jenkins freestyle project, set up Maven and Java configuration in jenkins. The test are working fine, 3(pass) but the jenkins returs fail, because of cmd command?
Im running a Test by a Maven command louncher
I did
path as Windows\system 32
How can i solve this problem? I run that on CMD not powershell in jenkins.It is a freestyleproject not maven project
FAIL
fail2
code
Comments:
2023-01-23 00:00:07
Show us your code. If you have specified the cmd
command under the "Run batch script" section of Jenkins, then you don't need to specify the cmd
command at the start which might be the reason for this error.
2023-01-23 00:00:07
Your command cmd /c call ...\....bat
is not robust anyhow it should have read C:\Windows\System32\cmd.exe /C "Call "...\....bat""
. Although I doubt Call
was needed at all.
2023-01-23 00:00:07
@Compo Hi, the code is in the attachment FAIL1 FAIL As screenshoot
2023-01-23 00:00:07
@user20883474, that's where I got it from,
(Top of fail2)!
2023-01-23 00:00:07
@M B In Attachment "code" This line of code with"cmd" is added automatically by jenkins. I don't have that in my execution jenkins section.
2023-01-23 00:00:07
@Compo This line is added automatically by jenkins. I don't have that in my execution jenkins section. How can I force jenkins, to read that properly?
2023-01-23 00:00:07
Jenkins is obviously not well coded, or should I say, not coded with the full understanding of how the interfaces it connects with work on the underlying Operating System.