开发者

Add Environment variable to Hudson

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开发者_如何学Go_NUMBER%). What would be the way of doing it? Thank you.


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.


If it's global (same on every node), you can add environment variables for every build in Manage Hudson -> Configure System, under Global Properties -> Environment Variables

Updated: Oops, sorry, didn't notice that @Michael Donohue had already said this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜