Set environment variable for build in hudson

Posted by pbreault on Stack Overflow See other posts from Stack Overflow or by pbreault
Published on 2009-08-25T18:11:49Z Indexed on 2010/05/18 19:40 UTC
Read the original article Hit count: 467

I am trying to put a maven2 project under continuous integration in hudson. The project uses selenium for some integration testing. Hudson is running on a headless linux. I am using xvfb to start a x server session for selenium.

In order to run the tests, I need to export an environment variable named DISPLAY. e.g.

export DISPLAY=:99

However, I don't want to set the variable on the box since it would affect all builds. I have tried to do a shell execute using the m2 extra steps plugin but it doesnt work since it is executed in a separate bash file, meaning that environment variables are not persisted.

Is there a way to register the environment variable from hudson.

© Stack Overflow or respective owner

Related posts about hudson

Related posts about environment-variables