How to consume metadata returned from 'in' and 'out'?


#1

From https://www.concourse-ci.org/implementing-resources.html:

The script must emit the fetched version, and may emit metadata as a list of key-value pairs. This data is intended for public consumption and will make it upstream, intended to be shown on the build’s page.

For example, output of git resource’s in is like:

{
  "version": { "ref": "61cebf" },
  "metadata": [
    { "name": "commit", "value": "61cebf" },
    { "name": "author", "value": "Hulk Hogan" }
  ]
}

How these metadata can be consumed? Is it possible to use these metadata in a task?