How can I check build status from within the build?


#1

I’m attempting to use Circle to build a docker image of our apps alongside the normal test flow. I’ve set up a separate repo with the build scripts that accepts build parameters from the primary build. It is able to update the Github commit status of the original PR via an additional script when the build starts (“running”), but I’m having trouble getting it to detect success or failure.

As far as I can tell, while the build is running, the only way to find the current build status is by querying the circle api for the current build. However, even if the test.override step fails, querying the api after that still has the status “running”. Is there a way to find out the results of the test commands from within the running container? Is there a better way to update the Github PR status from a build that wasn’t directly triggered by it?


#2