Skip to content

How to simulate merge requests or tag pushes etc? #1663

@chrisbecke

Description

@chrisbecke

Is your feature request related to a problem? Please describe.

Running gitlab-ci-local simulates a pipeline triggered by a git push. CI_PIPELINE_SOURCE is push and CI_COMMIT_BRANCH is the current branch.

I could simulate a tag or merge request, or manual pipeline even by overriding multiple CI_* variables but thats hard to get right manually.

It would be a boon to testing pipeline outcomes if the pipeline source (merge_request, push, trigger etc) and source (branch or tag) could be specified and the correct variables actually got set up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature missing according to gitlab ci standard

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions