Browse documentation

Variables and expressions

Context value expression

${CONTEXT_NAME}

The name may come from the pipeline’s attached variable group or secret group. Names must be unique across both groups. ICE preserves the expression and the runtime resolves it immediately before execution.

Action output expression

${action_reference.output_name}

action_reference is the unique reference configured on the canvas or declared in ICE. output_name must be declared by the action definition.

Codinamo preserves these expressions while editing and saving ICE. They are resolved only when the pipeline runs and the upstream action has exported the value.

Examples:

Expression Value

${clone.repository_path}

Path of the repository created by Git Clone

${clone.commit_sha}

Full checked-out commit SHA

${build.artifact_path}

Primary Maven or Gradle artifact

${image.image_name}

Image produced by Docker Build

${push.image_digest}

Digest returned by Docker Push

Trigger variables

Every run receives variables that describe what started it:

Variable Value

CODINAMO_TRIGGER

manual for runs started by a person, push for runs started by the push trigger, pull_request for pull request validations, schedule for scheduled runs.

CODINAMO_BRANCH

Branch of the run: the one chosen in a manual run (main when none was chosen), the branch that received the push, or the branch of the schedule (the default branch when it names none).

CODINAMO_COMMIT_SHA

Commit of the run: the one chosen in a manual run (empty for the latest commit of the branch) or the pushed commit.

CODINAMO_BEFORE_SHA

Only in push runs: the commit the branch pointed to before the push.

CODINAMO_SCHEDULE

Only in scheduled runs: the name of the schedule that started the run.

Use them in GIT_CLONE so the run builds exactly the commit it was started for, even if the branch moves in the meantime:

clone: action.GIT_CLONE({
    params: {
        repositoryUrl: "https://git.codinamo.com/acme/backend.git",
        branch: "${CODINAMO_BRANCH}",
        commit: "${CODINAMO_COMMIT_SHA}"
    }
})

Naming constraints

Reference names start with a letter and contain letters, numbers, and underscores. Renaming an action does not silently rewrite arbitrary text in unrelated parameters; update downstream references and resolve validation errors.

Availability

Only outputs from completed upstream actions are available. A parallel sibling cannot consume an output unless the graph introduces a dependency that guarantees ordering.

Pipeline validation reports references whose action does not exist, whose output is not declared by the action type, or whose producer is not upstream from the consumer. These semantic diagnostics do not change the ICE expression.