[FIXED JENKINS-18367] Use non-zero return code in case list-jobs CLI command fails
Merge pull request #815 from olivergondza/list_jobs_retval

[FIXED JENKINS-18367] Use non-zero return code when list-jobs CLI fails