views:

59

answers:

1

My company is trying to automate the creation of a nightly installer with Hudson. Our license to install anywhere is running on a separate server. We have an ANT build script set up to call the InstallAnywhere jar file which creates the installer automatically, and that works great when ran from the command prompt.

However when we try to run it inside of Hudson, Hudson is not able to connect to that license server. InstallAnywhere spits out The evaluation period has expired. Does anyone know what we can do to solve this issue?

I'm assuming it's a Hudson issue since our ANT script works fine when used outside of Hudson.

+2  A: 

My best guess is that you need to set up some environment variables required by the InstallAnywhere process; I'm not very familiar with that product, but maybe it needs a home directory for the product, the location of the license file, the license key value, etc.

One easy way to debug this would be to check if Hudson is running under the same user that you are using to run the Ant script from the command line, then check the environment settings for the command line user if they are different.

gareth_bowles
Congrats! You were faster. It's usually the different user account issue.
Peter Schuetze
A simple change of the user Hudson was running under fixed the problem. Thanks!
Lithium