I’m working with Pipline (Groovy language) and I’m trying to Build a Job with Failure Status.
Any suggestions?
There is an error
step which doesn’t require any node, so the minimal working Pipeline that will fail is simply:
error "I'm failing"
Thank you @PierreBtz,but in my case I want to build the job from groovy script and force it status to fail
Do you have an example of what you are trying to accomplish?