Maintain compatibility with Jenkins <1.519.