> I have some problem to get a correct PATH in hudson.
> I'm using the version 1.230 in a tomcat-5.5.26.
> I have an init script that initialize some variable like this :
> export MVN_HOME JAVA_HOME PATH
> When I look in the Hudson System Properties page I can see my JAVA_HOME
> ans MVN_HOME properties but the PATH is not correct.
If you are setting it as a part of your shell script, that only affects
the environment variables of the shell and not that of Hudson. So your
build should see the PATH that you set, but you wouldn't see the value
in Hudson's system properties / env variable pages.
I've never tried to export multiple variables once, so if you are having
a problem with that, try more standard syntax like this:
(assuming you are using bash)
> How can I do to have a good PATH in hudson ?
You can set it before launching Tomcat.
When you choose JDK in job configuration, Hudson will add $JAVA_HOME/bin
to your PATH. Similarly if you use Maven2 builder, it gets $MVN_HOME and
etc all set. So normally you wouldn't have to worry about this sort of