I try to query the jobs in the build queue by using /queue/api/json?pretty url. I get the result, however, it doesn't contain the names of the pipeline jobs in certain cases.
If a pipeline job has concurrent builds disabled then I get the following:
So far so good, I can see the job name (test-pipeline1). However, if concurrent builds are enabled, then there's no "name" reference in the json result. Note that the pipeline job below uses lockable resources. And while waiting for the given resource to be available I get the results below, without the job name.
So my question is how to get the job name in the build queue api call. Btw. I tested with the xml and python output as well, they both miss the job name.