Functions for working with the build object in the runtime. This represents the current build.
Functions for working with the build object in the runtime. This represents the current build.
Retrieves all jobs known to the build
Retrieves all jobs known to the build
(build->evt build)
Prepare build object so it can be added to an event
Prepare build object so it can be added to an event
(build-end-evt build & [exit-code])
Creates a build/end
event
Creates a `build/end` event
(calc-checkout-dir rt)
(calc-checkout-dir rt build)
Calculates the checkout directory for the build, by combining the checkout base directory and the build id.
Calculates the checkout directory for the build, by combining the checkout base directory and the build id.
(calc-credits build)
Calculates the consumed credits for this build
Calculates the consumed credits for this build
(calc-script-dir wd sd)
Given an (absolute) working directory and scripting directory, determines the absolute script dir.
Given an (absolute) working directory and scripting directory, determines the absolute script dir.
Gets the checkout dir as stored in the build structure
Gets the checkout dir as stored in the build structure
Creates a string representation of the job sid
Creates a string representation of the job sid
Creates a job sid using the build id and job id. Note that this does not include the customer and repo ids, so this is only unique within the repo.
Creates a job sid using the build id and job id. Note that this does not include the customer and repo ids, so this is only unique within the repo.
(get-sid rt)
Gets current build sid from the runtime. This is either specified directly, or taken from account settings.
Gets current build sid from the runtime. This is either specified directly, or taken from account settings.
(job-relative-dir rt p)
Calculates path p
as relative to the work dir for the current job
Calculates path `p` as relative to the work dir for the current job
(job-work-dir rt)
Given a runtime, determines the job working directory. This is either the work dir as configured on the job, or the context work dir, or the process dir.
Given a runtime, determines the job working directory. This is either the work dir as configured on the job, or the context work dir, or the process dir.
(make-build-ctx rt)
Creates a build context that can be added to the runtime. This is used when running a build from cli.
Creates a build context that can be added to the runtime. This is used when running a build from cli.
Gets script dir for the build from runtime
Gets script dir for the build from runtime
Calculates ssh keys dir for the build
Calculates ssh keys dir for the build
(success-jobs b)
Returns all successful jobs in the build
Returns all successful jobs in the build
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close