Support new build format

Should be merged if and when https://github.com/jenkinsci/jenkins/pull/1379 is.