Install Java 8 on build agents.