I’d like to fetch the commit hash of the previous build. The current one is available as CIRCLE_SHA1, and there is also CIRCLE_COMPARE_URL, but no sha1 of previous build.
Is there an easier way than parsing CIRCLE_COMPARE_URL?
+1 to this feature request. It would be very nice to have this info readily available to help decrease build times. Tools such as Lerna, Bazel and others can make use of this information to only rebuild what needs building.