Why does my Jenkins not run a .exe file?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Why does my Jenkins not run a .exe file?

Balu Pillai
Hi all, 

I am a newbie to Jenkins, but I have been reading and learning a lot in the recent months. First of all, let me say - I am very impressed with Jenkins and that how most of the stuff work out of the box for simple configurations. I have been pushing my self gradually into writing pipeline scripts etc. I am blocked with a few issues, one of them being that I am not able to run a windows executable from my Jenkins. Below is what I face: 

Issue:
- Jenkins gets stuck/frozen when running an .exe in a batch script (both freestyle and pipeline) - tried with many .exes to test and the same.
.

Info:
- The executable is a binary file generator app installed locally on the machine. It takes in few parameters and creates a binary file
- I am able to run it outside of Jenkins and works as expected
- Jenkins v2.152 is installed as localhost and the .exe is also on this machine (no slaves configured)
- I have no admin access on the machine. But Jenkins is installed on C: drive with admin privileges and can modify files in work space.
- It is a windows 10 machine.

My attempts:
1. As some have suggested I have tried to run .exe as a service by using the keyword "start", but this time Jenkins does not freeze but the executable does not run.
2. Used Java melody etc. to analyse if there is an issue with Jenkins resources. No problem, enough resources left
3. Installed and used the plugin "Windows exe runner", but have the same issue.


I would appreciate if any advise or some pointers can be given to me to progress. So many thanks.

Regards,
Balu

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e4ab8bdc-8dd7-4fa4-8608-6cf14b15e736%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Why does my Jenkins not run a .exe file?

Aaron Digulla
Hi Balu,

This is very weird. Some things that you can try:

- Run another exe (something simple). Does that work?
- Does it work when you put "cmd /c" in front of the name of the executable?
- Do you get an error when you add a typo to the name of the executable (maybe Jenkins can't find it)?
- Does the program wait for input on stdin? Try to close stdin (not sure how do that on windows, on Linux, it would be "< /dev/null")
- Does the master get stuck (i.e. the web interface doesn't respond anymore) or the slave?

Regards,

--
Aaron Digulla

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b5f803e6-754a-4faa-ad25-e8fab1e2aa7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.