Skip to content

What is the benifit of gitlab-ci-local over gitlab-runner exec? #755

Closed Answered by firecow
Vad1mo asked this question in Q&A
Discussion options

You must be logged in to vote

gitlab-runner exec is not capable of parsing extends, merging includes or expanding !reference [.hidden, script], the moment you start having "complex" ci yaml, gitlab-runner exec isn't of much help.

gitlab-ci-local makes it possible to pass custom variables to your job, making it easier to mimic/modify gitlab's ci/cd variables.

gitlab-ci-local will copy artifacts to your local checkout, so that your IDE can index stuff like node_modules or php vendor folders to provide code autocompletion n' other help.

gitlab-ci-local can execute an entire pipeline or a subset of jobs (--needs, --only-needs), whereas gitlab-runner exec only runs a single job.

Also, I'm pretty sure gitlab said gitlab-run…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by firecow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants