Cannot run program "bundle.bat from Jenkins

I apologize in advance.. I know there are similar post issues about this but I can't quite figure out how to resolve this.

I am beginner user with  Ruby... so please bare with me ..

 

RubyMine Version : Version: 2020.1.1

jruby-9.0.5.0

using VM that multiple users logs in .

 

Able to run install bunder from RubyMine... I can run the test just fine locally from the VM. But  get an error when running from Jenkins.

Thank you for any help that can be provided

full error log below from Jenkins:

Started by user Carey
Running as SYSTEM
Building remotely on ruby_vmmctxizzz408 in workspace c:/temp/workspace/g2g_smoke_test
> C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> C:\Program Files\Git\bin\git.exe config remote.origin.url https://github/testing.git # timeout=10
Fetching upstream changes from https://github/testing.git
> C:\Program Files\Git\bin\git.exe --version # timeout=10
using GIT_ASKPASS to set credentials
> C:\Program Files\Git\bin\git.exe fetch --tags --progress https://github/testing.git +refs/heads/*:refs/remotes/origin/*
> C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
> C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision 1488ccb6e9b6fd8f03adf12679f445c36cc5c769 (refs/remotes/origin/master)

> C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
> C:\Program Files\Git\bin\git.exe checkout -f 1488ccb6e9b6fd8f03adf12679f445c36cc5c769
> C:\Program Files\Git\bin\git.exe rev-list f36a946ae853390a599f8069501e1e5eaa7330cb # timeout=10

TSID: 'null' JOB_NAME: 'smoke_test'

[smoke_test] $ bundle.bat exec rake smoke_test
The system cannot find the file specified
FATAL: rake execution failed
java.io.IOException: Cannot run program "bundle.bat" (in directory "c:\temp\workspace\smoke_test"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(Proc.java:250)
at hudson.Proc$LocalProc.<init>(Proc.java:219)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:936)
at hudson.Launcher$ProcStarter.start(Launcher.java:454)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1316)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1269)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117)
at java.lang.Thread.run(Unknown Source)
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from ruby_vmmctxizzz408 .co/10.111.111.111:1111
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1737)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
at hudson.remoting.Channel.call(Channel.java:951)
at hudson.Launcher$RemoteLauncher.launch(Launcher.java:1057)
at hudson.Launcher$ProcStarter.start(Launcher.java:454)
at hudson.Launcher$ProcStarter.join(Launcher.java:465)
at hudson.plugins.rake.Rake.perform(Rake.java:179)
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:1853)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:428)
Caused by: 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)
... 16 more
Build step 'Invoke Rake' marked build as failure

Finished: FAILURE

Please sign in to leave a comment.