Is there a way to disable a Jenkins job from inside a pipeline?
I use the Disable Failed Job plugin very heavily https://plugins.jenkins.io/disable-failed-job , so that when a Jenkins job fails, it is automatically disabled.
This is handy for the workflow that I have.
This plugin unfortunately does not work with Jenkins Pipeline.