Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Build Context (ctx)

Florian Sellmayr edited this page Jan 15, 2017 · 3 revisions

The build context ctx is passed to all build steps as the second parameter.

It provides a couple of values that are necessary to more deeply hook into the internals of LambdaCD:

:result-channel

This is a core.async channel that allows you to set intermediate values about the step result while a build step is running. Most of the time, this will be used to update the output (:out) or status (:status) of the step to inform the user about the steps progress via the UI.

The message format is a tuple of the key you want to set and a value. Updates to the same key overwrite previous values.

E.g. to update the output of your build step:

(async/>!! (:result-channel ctx) [:out msg])

:config

The config-value initially passed into assemble-pipeline

:build-metadata-atom

introduced in version 0.13.0

Atom that allows access to the current builds metadata. See [Build Metadata](https://github.com/flosell/lambdacd/wiki/Build Metadata) for details

Clone this wiki locally