Jenkins get previous build status

println(currentBuild.getPreviousBuild())
println(currentBuild.getPreviousBuild().result)