>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. 

https://www.jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#bat-windows-batch-script
https://www.jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#powershell-powershell-script



El martes, 20 de octubre de 2020 a las 16:35:18 UTC+2, hassana...@gmail.com 
escribió:

> 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 
> )[image: 
> jenkins 1.jpg][image: jenkins 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 
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/08f41432-e788-4e89-97b9-5740f8cffad3n%40googlegroups.com.

Reply via email to