so, you have your continuous integration system up and running. you’re using Bamboo from Atlassian since they rock. however, you have a need to run some tests that require an X server to be running (like flexunit tests).
however, you don’t really need a plugin! if you’re using maven 2.0, drop these three lines into ~/.mavenrc:
vncserver -kill :0 vncserver :0 export DISPLAY=:0
(be sure to run vncserver once as the user Bamboo runs as to set a password first).
then, when maven is launched, it will destroy the existing X session, start a new one, and set the display property properly. should anything go awry, you can always connect a VNC client to see the screen prior to the next build starting.
while it’d be nice to have it more automagic like what Hudson has, its easy enough to string a solution upTags: code, development