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


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 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>(
at hudson.Proc$LocalProc.<init>(
at hudson.Launcher$LocalLauncher.launch(
at hudson.Launcher$ProcStarter.start(
at hudson.Launcher$
at hudson.Launcher$
at hudson.remoting.UserRequest.perform(
at hudson.remoting.UserRequest.perform(
at hudson.remoting.Request$
at hudson.remoting.InterceptingExecutorService$
at Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$ Source)
at hudson.remoting.Engine$1.lambda$newThread$0(
at Source)
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from ruby_vmmctxizzz408 .co/
at hudson.remoting.Channel.attachCallSiteStackTrace(
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(
at hudson.Launcher$RemoteLauncher.launch(
at hudson.Launcher$ProcStarter.start(
at hudson.Launcher$ProcStarter.join(
at hudson.plugins.rake.Rake.perform(
at hudson.tasks.BuildStepMonitor$1.perform(
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
at hudson.model.Build$
at hudson.model.Build$BuildExecution.doRun(
at hudson.model.AbstractBuild$
at hudson.model.Run.execute(
at hudson.model.ResourceController.execute(
Caused by: 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.