any one help me i have an error and i have tired how we solve this

22 views
Skip to first unread message

Arslan Hassan

unread,
Oct 20, 2020, 10:35:18 AM10/20/20
to Jenkins Users
i have a python selenium frame work script and i set path like in image this is two path and when i save and run this this give me error (error is )jenkins 1.jpgjenkins 2.jpg



Error is:
Running as SYSTEM Building in workspace C:\Users\hassa\PycharmProject\PythonSelFramework [Checks API] No suitable checks publisher found. [PythonSelFramework] $ sh -xe C:\Users\hassa\AppData\Local\Temp\jenkins7452871196304311680.sh The system cannot find the file specified FATAL: command execution failed java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) Caused: java.io.IOException: Cannot run program "sh" (in directory "C:\Users\hassa\PycharmProject\PythonSelFramework"): CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:252) at hudson.Proc$LocalProc.<init>(Proc.java:221) at hudson.Launcher$LocalLauncher.launch(Launcher.java:996) at hudson.Launcher$ProcStarter.start(Launcher.java:508) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:143) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:91) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741) at hudson.model.Build$BuildExecution.build(Build.java:206) at hudson.model.Build$BuildExecution.doRun(Build.java:163) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1894) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:428) Build step 'Execute shell' marked build as failure [Checks API] No suitable checks publisher found. Finished: FAILURE 



kindly any one help 




Ivan Fernandez Calvo

unread,
Oct 20, 2020, 12:39:59 PM10/20/20
to Jenkins Users
>Caused: java.io.IOException: Cannot run program "sh"

You are in Windows so you have to use or the "bat" step or the "powershell" step, "sh" only works on UNIX systems. 

Reply all
Reply to author
Forward
0 new messages