Reputation: 270
I have a Jenkins server in windows 7 environment, and I run a batch file from jenkins. This batch file launches a jar that calls cmd.exe
in order to connect to an instrument (spirent).
The above batch file fails when is started from jenkins, installed as a windows service, but works fine either if is started directly from cmd or from a jenkins started as
java -jar jenkins.war.....
Upvotes: 1
Views: 1134
Reputation: 2556
If the windows service user running Jenkins is different than the user you are logged in as, you are likely running into a permissions issue. Possible solutions include changing the user running the service or modifying permissions necessary to allow the service user to perform the desired tasks.
Upvotes: 1