-
Notifications
You must be signed in to change notification settings - Fork 58
API to retrieve git specific build information #84
Comments
As I understand you, this API is meant to provide data for a separate dashboard, not the the existing LambdaCD UI. In fact, I don't need LambdaCD Core to be the tool that does it all, I'm trying to build a basis others can build on. So different interfaces for different use cases are even encouraged. But you are right, you shouldn't be forced to duplicate so much of LambdaCDs code to achieve that. I'll look into the code a bit more in the next days to see what could be made public to improve that. In the longer run, I have some ideas to make this more elegant. Maybe a concept like "build metadata" build steps (like git) could write into but also to capture things like build times. |
Yes, this is information we're interested in generally, whether through UI or other integrations.
+1
Thanks!
Yes, I was thinking along these long lines, so that a pipeline can bubble up key information. |
I also created a new issue with my thoughts on build metadata (#86) and made some of the common functions public. What do you think? |
Looks great! |
btw, I tested out your changes and works well. |
Thanks for the feedback! |
We're using
lambdacd
withlambdacd-git
to build any git branch or tag. This results in build step variables for gitchanged-ref
, gitrevision
(commit id) and gitcommits
. These are very useful for tracking and monitoring build information across branches. Especially branches such asmaster
. We're keen to know what the latest state of a given git branch is, but unfortunately with the current API this is not possible. We understand that lambdacd is decoupled so that git is not a first class citizen, but rather just something that may be part of a build pipeline. For us though, we do want git information and particularly git branch information be a first class citizen. The current API for build history does not include any git information, so even augmenting what it currently available from/api/builds
is not possible.Here's what I have implemented as a short-term solution for our project to solve this, but it requires some duplication of lambdacd code, which isn't optimal.
https://gist.github.com/philwhln/5334e7399405eb9f3b8f
Any thoughts and feedback on how this might be better implemented or ways in which
lambdacd
might be modified to better support this kind of extensibility would be much appreciated.The text was updated successfully, but these errors were encountered: