Comment 3 for bug 1863744

Revision history for this message
Colin Watson (cjwatson) wrote :

I think there might be an easier way to inject this than revision attributes. Launchpad already sets SNAPCRAFT_IMAGE_INFO, which snapcraft honours; this lets us inject a dictionary that ends up in "image-info" in snap/manifest.yaml. At the moment we inject the Launchpad build request ID, the build request timestamp, and the build URL this way; we could perhaps add a "build-reason" or similar, though we'd need to specify it clearly.

Alternatively, does it need to end up in the snap store at all? Since the build URL is already tracked in the snap's manifest, we could have a property in the Launchpad database that describes why the build was triggered, and you could look it up from there.