Skip to content

Cannot run gitlab jobs locally #1841

Description

@mauhau

Minimal .gitlab-ci.yml illustrating the issue

Unfortunately I cannot pin down what in the gitlab-ci.yaml is now working, but as it is open-source:

https://gitlab.com/yaook/operator/-/blob/devel/.gitlab-ci.yml?ref_type=heads

Expected behavior

Listing the jobs is working and not failing:

$ gitlab-ci-local --list
TypeError: null is not an object (evaluating 'F.replaceAll')
    at evaluateRuleIf (src/utils.ts:244:19)
    at getRulesResult (src/utils.ts:201:24)
    at new B1 (src/job.ts:211:38)
    at <anonymous> (src/parser.ts:174:33)
    at forEachRealJob (src/utils.ts:67:13)
    at init (src/parser.ts:160:15)
    at async create (src/parser.ts:60:22)
    at async Z$ (src/handler.ts:55:31)
    at async <anonymous> (src/index.ts:50:27)
    at processTicksAndRejections (native:7:39)

At least a debug / verbose option would be nice to pin down why this is failing.

Host information
Ubuntu
gitlab-ci-local 4.71.0

Containerd binary
n/a

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    elaborateFurther elaboration is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions