In some specific cases, if we use trycatch exception, Jenkins knows that issues, but still continue running other stage in pipeline. We need a force handling to make this pipeline failure immediately
2. Solution
currentBuild.result ='FAILURE'error("Failure right here, force exit")