Skip to content

glob pattern matching for specific job(s) execution #1664

@jguy-cf

Description

@jguy-cf

Is your feature request related to a problem? Please describe.
When building CI tasks from multiple underlying "base jobs", I am not able run a select subset of tasks without listing out each individual job name.

Describe the solution you'd like
Using a simple example: it would be nice to be able to run gitlab-ci-local "job-type-*" and have all jobs prefixed with job-type execute.

Describe alternatives you've considered
There are alternatives that can solve the problem in other ways, such as categorizing the select tasks into the same stage in tandem with --stage <stage> CLI argument. Using --needs, which may help in some cases. However, I do not want to break stages down so granular.

Additional context
Imagine a flow like-so:

Image

I do not necessarily want to create a stage for job, nor do I want to specify prep / build/ deploy stages.. it would be helpful to be able to specify gitlab-ci-local job-* and have the 4 tasks execute. I think a code change here may allows this 🤔

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