Storing metadata from drone run

#1

Hi, is it possible to add additional metadata to the payload that the drone server stores after a build that would then be accessible via the drone server API or CLI?

For instance, someone might want to run a shell script that parses through the logs for a particular step and extracts how long it took to complete a particular part of the test (like startup-time after compiling) that isn’t otherwise captured by drone. You could then store that data in drone, and later access it from the /api/repos/{owner}/{repo}/builds/{build} endpoint or the drone build info CLI.

Of course, you could do this parsing after the fact but for my use case (and I think its more general), that isn’t quite possible due to the size of some of the logs -> burden of network requests.

0 Likes