public final R getSomeBuildWithWorkspace ( ) { int cnt = 0 ; for ( R b = getLastBuild ( ) ; cnt < 5 && b != null ; b = b . getPreviousBuild ( ) ) { FilePath ws = b . getWorkspace ( ) ; if ( ws != null ) return b ; } return null ; }
Gets some build that has a live workspace .