How to list Jenkins projects/jobs in system groovy only on master node?
<p>How do I list projects/job names in system Groovy only on master node?</p>
<p>To be more specific:</p>
<p>I need only list of jobs which runs on master. I don't want output any job which runs on slave nodes.</p>