Fixed so that the java code detects if we are building on jenkins and sets a special environment for that case