Restrict 1336172 query on build_name

This is a generic error message hitting on specific
jobs, so restrict the query to those jobs.

Change-Id: Ia33779331cf445aa00e3e216f9f562d9a68955c4
Related-Bug: #1336172