provenance library
Classes
- Git
-
Runs git, and treats a non-zero exit as fatal unless
allowFailure. - UploadRecord
- The tag recording that commit reached a store.
Enums
- UploadRecordResult
- Outcome of recordUpload, so a caller can report without re-deriving it.
Constants
- uploadCollisionExit → const int
-
What
cux_shipexits with when UploadCollisionException is raised.
Functions
-
recordUpload(
Git git, UploadRecord record, {bool push = true, bool dryRun = false, bool failedPushIsFatal = true}) → UploadRecordResult -
Records that
recordreached a store, and pushes it. -
taggedCommit(
Git git, String name) → String? - The commit a tag resolves to, or null when the tag is absent.
Exceptions / Errors
- ReleaseException
- Something wrong that the caller should report rather than a bug.
- UploadCollisionException
- One build number naming two commits — the thing recordUpload exists to refuse.