Reputation: 9752
I've managed to get openshift
to download my github
commits and fire on a webhook
without issue. What I'd love to be able to do though is make use of the Github Status API to be able to mark builds as good or bad.
Has anyone had any success in doing this? If so how do you do it? I was thinking of doing it via the postBuild
hook in openshift
however I don't think I have access to the SHA nor would I be albe to post on failure.
Upvotes: 0
Views: 64
Reputation: 58523
The OPENSHIFT_BUILD_COMMIT
environment variable, along with a few others, will be set in the image and provide details about the remote repo used.
You should be able to see those from the hook you run in the image as part of the postCommit
hook.
Upvotes: 1