Fix the build to comply with new jenkins plugins