-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Solaris
I want to return an error from my groovy script and used for it System.exit(13).It caused shutdown of jenkins.
The script was startet using jenkins-cli.
...
if(args.length < 2){
System.exit(13)
}
...
Finally I found a workaround and use RuntimeException in my script and the job finished as expected as failed. But jenkins cann still continue his work
...
if(args.length < 2)
...
- is duplicated by
-
JENKINS-17758 Calling System.exit(1) in Build Flow Plugin shuts down container
-
- Resolved
-