lambdacd.state.core

Facade for all functions related to dealing with LambdaCDs state. Wraps the related interfaces to simplify compatibility and API.

all-build-numbers

(all-build-numbers ctx)
Returns all existing build numbers

consume-build-metadata

(consume-build-metadata ctx build-number metadata)
Update build metdata in the state

consume-pipeline-structure

(consume-pipeline-structure ctx build-number pipeline-structure-representation)
Update the pipeline structure in the state

consume-step-result-update

(consume-step-result-update ctx build-number step-id step-result)
Update a step-result in the state

get-build-metadata

(get-build-metadata ctx build-number)
Returns a map describing metadata of a build

get-pipeline-structure

(get-pipeline-structure ctx build-number)
Returns a map describing the structure of the pipeline

get-step-result

(get-step-result ctx build-number step-id)
Returns a map containing the result of one step

get-step-results

(get-step-results ctx build-number)
Returns a map from step-ids to step-results

next-build-number

(next-build-number ctx)
Returns the build number for the next build