Make sure jenkins is started with correct environment.