Add Environment variable to Hudson

hudson

Solution

You can set node variables, that will be available to every job that runs on that node. Go to the node configuration page, and you'll see it. For the master node, the environment variables are configured on Hudson's main configuration screen.

Problem

I am looking into a way of defining an environment variable for Hudson (NCover path on build server), so that build scripts can use it, but no need to re-define it in Hudson jobs (similar to `%SVN_REVISION%` or `%BUILD_NUMBER%`). What would be the way of doing it? Thank you.

Original source