Make it possible to run tests on Cloudbees using PhantomJS

Bug: 58035
Change-Id: I66a0b51646cfa1c7cde43b3d9a9a4af0d93b74e6
Merge "Make it possible to run tests on Cloudbees using PhantomJS"