Liking cljdoc? Tell your friends :D

monkey.ci.build.core

Core build script functionality. This is used by build scripts to create the configuration which is then executed by the configured runner. Which runner is configured or active depends on the configuration of the MonkeyCI application that executes the script.

Core build script functionality.  This is used by build scripts to create
the configuration which is then executed by the configured runner.  Which
runner is configured or active depends on the configuration of the MonkeyCI
application that executes the script.
raw docstring

->predclj

(->pred x)
source

action-jobclj

(action-job id action)
(action-job id action opts)

Creates a new job

Creates a new job
sourceraw docstring

action-job?clj

source

added?clj

Checks if any of the added files matches p. If p is a function, it is used as a predicate. If it's a string, and exact match is performed. If it's a regex, a regex match is done.

Checks if any of the added files matches `p`.  If `p` is a function, it is used
as a predicate.  If it's a string, and exact match is performed.  If it's a regex,
a regex match is done.
sourceraw docstring

as-jobclj

(as-job f)

Marks fn f as a job

Marks fn `f` as a job
sourceraw docstring

branchclj

Gets the commit branch from the context

Gets the commit branch from the context
sourceraw docstring

branch-regexclj

source

build-idclj

Retrieves this build id from the context

Retrieves this build id from the context
sourceraw docstring

container-jobclj

(container-job id props)

Creates a job that executes in a container

Creates a job that executes in a container
sourceraw docstring

container-job?clj

source

defjobcljmacro

(defjob n & args)

Defines an action job function

Defines an action job function
sourceraw docstring

defpipelinecljmacro

(defpipeline n jobs)

Convenience macro that declares a var for a pipeline with the given name with specified jobs

Convenience macro that declares a var for a pipeline with the given name 
with specified jobs
sourceraw docstring

depends-onclj

(depends-on job ids)

Adds dependencies to the given job

Adds dependencies to the given job
sourceraw docstring

failed?clj

(failed? {:keys [status]})
source

failureclj

source

file-changesclj

source

files-addedclj

Files that have been added by the commits

Files that have been added by the commits
sourceraw docstring

files-modifiedclj

Files that have been modified by the commits

Files that have been modified by the commits
sourceraw docstring

files-removedclj

Files that have been removed by the commits

Files that have been removed by the commits
sourceraw docstring

git-refclj

(git-ref ctx)

Gets the git ref from the context

Gets the git ref from the context
sourceraw docstring

job-idclj

(job-id x)
source

main-branchclj

source

main-branch?clj

(main-branch? ctx)
source

modified?clj

Similar to added? but for modified files

Similar to `added?` but for modified files
sourceraw docstring

pipelineclj

(pipeline config)

Create a pipeline with given config

Create a pipeline with given config
sourceraw docstring

pipeline?clj

(pipeline? x)
source

ref-regexclj

(ref-regex ctx re)

Applies the given regex on the ref from the context, returns the matching groups.

Applies the given regex on the ref from the context, returns the matching groups.
sourceraw docstring

regex?clj

source

removed?clj

Similar to added? but for removed files

Similar to `added?` but for removed files
sourceraw docstring

restore-artifactsclj

(restore-artifacts job artifacts)

Adds given artifacts to the job restored artifacts

Adds given artifacts to the job restored artifacts
sourceraw docstring

save-artifactsclj

(save-artifacts job artifacts)

Adds given artifacts to the job saved artifacts

Adds given artifacts to the job saved artifacts
sourceraw docstring

skippedclj

source

skipped?clj

(skipped? {:keys [status]})
source

statusclj

(status v)
source

status?clj

(status? x)

Checks if the given object is a job status

Checks if the given object is a job status
sourceraw docstring

step->jobclj

(step->job m)

Converts legacy map jobs into job records

Converts legacy map jobs into job records
sourceraw docstring

successclj

source

success?clj

(success? {:keys [status]})
source

tagclj

Gets the commit tag from the context

Gets the commit tag from the context
sourceraw docstring

tag-regexclj

source

touched?clj

Returns true if the path occurs in any of the file changes. If p is a regex, checks if any of the files match the regex. If p is a function, it is applied as a predicate against the files, until one matches.

Returns `true` if the path occurs in any of the file changes.  If `p` is a regex, 
checks if any of the files match the regex.  If `p` is a function, it is applied
as a predicate against the files, until one matches.
sourceraw docstring

with-messageclj

(with-message r msg)
source

work-dirclj

The job work dir

The job work dir
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close