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”

ERROR:
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.
java.lang.NullPointerException
at org.pentaho.di.core.plugins.PluginRegistry.getPluginId(PluginRegistry.java:689)
at org.pentaho.di.core.plugins.PluginRegistry.getPlugin(PluginRegistry.java:715)
at org.pentaho.di.core.plugins.PluginRegistry.loadClass(PluginRegistry.java:370)
at org.pentaho.di.base.AbstractBaseCommandExecutor.establishRepositoryConnection(AbstractBaseCommandExecutor.java:195)
at org.pentaho.di.kitchen.KitchenCommandExecutor.execute(KitchenCommandExecutor.java:115)
at org.pentaho.di.kitchen.Kitchen.main(Kitchen.java:286)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
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.