Daniel Beck commented on Bug JENKINS-26576

what i was asking is what language was it

You were not. Read your comment again.


That script is basically how the build discarder/log rotator goes about deleting old build records. Since this script has no output, it doesn't see any builds – just like your log indicates for build deletion.

Please try the following instead:

def j = Jenkins.instance.getItemByFullName("Job Name") // replace with actual job name
def bs = j.builds
for (def b : bs) {
  println b
}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to