I was looking for the same thing, and our jenkins are also quite large, and they tried to find the link:
http://[jenkins_server]/api/xml?depth=2&xpath=/hudson/job/build[keepLog="true"]/url&wrapper=forever
I ended up crashing.
But, as it turned out, I only need the last "save forever" assembly of one work at a time, which seems to work faster. So instead, I use the following:
http://[jenkisn_server]/job/[job_name]/api/xml/?depth=2&xpath=/freeStyleProject/build[keepLog="true"]/number&wrapper=forever
which returns xml with all build numbers that are marked as βsave foreverβ, you can change the xpath to suit your needs.
teapothat
source share