title: How to keep only last 5 build of certain job using Jenkins CLI
body: <p>I would like to make jenkins' jobs cleanup more automate, but of some jobs (like with test results) we would like to keep last 5 jobs.
  I usually use Jenkins CLI for deleting, but I don't know how to get build numbers of those I need to delete. Would someone know?</p>