You can use the error step from the pipeline DSL to fail the current build.
error("Build failed because of this and that..")
You can use the error step from the pipeline DSL to fail the current build.
error("Build failed because of this and that..")