Also had to switch Git strategy from "fetch" to "pull" in settings - otherwise the build failed when updating submodules.