We have jenkins 1.522 running on Centos 5. Using the job-dsl-lugin version 1.15.
I'm using it to create jobs from template job. The generator job is configured to use groovy script from file system.
When I add System.exit(0) in that groovy script, as soon as the jenkins generator job is kicked off, the entire jenkins server goes down and we need to restart the daemon.
here's a watered down framework of the problem in groovy script:
mylist.eachLine {
if (somecondition != null) {
System.exit(0) //THIS CRASHES THE JENKINS SERVER PROCESS
}
}