This only makes sense if the build result has been set, either because this step is in a catch or finally block and the job already failed, or because it was manually set in the DSL (eg: currentBuild.result = Result.FAILURE.toString()) If it was not set, then only "all" will make sense.