in a larger jenkins installation projects can bring down jenkins by using a non-existing agent jenkins does keep the jobs despite. it would be great if jenkins could be configured to cancel such jobs with an error.
{code:java}
pipeline { // agent none to allow different agents for various steps agent none stages { stage('Build') { agent { label 'nonexisting' } steps {