XCS_OUTPUT_DIR has a file called sourceControl.log . This file has the following logs:
"DVTSourceControlLocationRevisionKey" : "3787c0d9e5107861a8b8d4c7300b2d414ad41dbb",
You can analyze this log to find SHA.
Perhaps more practical, CaveJohnson can pull out the SHA:
PATH=/Library/Frameworks/Python.framework/Versions/3.4/bin:$PATH SHA=`cavejohnson getSha`
Or he can just go and set GitHub status as single-line:
#!/bin/bash PATH=/Library/Frameworks/Python.framework/Versions/3.4/bin:$PATH cavejohnson setGithubStatus
It is noteworthy that there are more statuses than just success and failure, there are at least 6 that I know of. You can learn more about them in the Xcode 6 CI Missing Manual .
source share