title: Jenkins CLI List-Jobs with folders
body: <p>While using the Jenkins Folders Plugin, is there a way to get a list of all jobs (including jobs in folders and possible the folder path) simular to how list-jobs in the default CLI works?</p>
  
  <p>I have made a small PowerShell script to get info for the last build of every job in the default dashboard and export relevant info to excel. But now we started using folders, and it doesnt work for folders and the jobs in them.</p>
  
  <p>My old import code:</p>
  
  <pre><code>java -jar jenkins-cli.jar -s http://localhost:8080 list-jobs --username $username --password $password &gt; jobs.csv
  </code></pre>
  
  <p><a href="http://pastebin.com/raw/rcj99rjx" rel="noreferrer">http://pastebin.com/raw/rcj99rjx</a> for my full code with comments</p>