Pentaho Job execution error in jenkins

Unable to run pentaho job from jenkins.
When I executed job from windows command line it’s executed . But when I have run same command from Jenkins scheduling then it throws an error as —

Command which I have executed :

E://data-integration/Kitchen.bat /rep:“<repository_name>” /dir:“” /job:“AMR_Data”

Nov 23, 2022 11:55:07 AM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFO: Lock acquired. Setting startlevel to 100
2022/11/23 11:55:08 - Kitchen - Start of run.
at org.pentaho.di.core.plugins.PluginRegistry.getPluginId(
at org.pentaho.di.core.plugins.PluginRegistry.getPlugin(
at org.pentaho.di.core.plugins.PluginRegistry.loadClass(
at org.pentaho.di.base.AbstractBaseCommandExecutor.establishRepositoryConnection(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.pentaho.commons.launcher.Launcher.main(
Build step ‘Execute Windows batch command’ marked build as failure
Finished: FAILURE

I don’t know the particular software you are running but keep in mind that Jenkins may run
your command under a different user account with different privileges. If you run it manually,everything may work fine, but no from Jenkins.

For the error I’d ask the developers of Pentaho, looks like some “plugin registry” could not start and find whatever it needs. Maybe Java class path is different.