Juliatzin
Juliatzin

Reputation: 19725

Run gitlab-runner for several steps

I'm using gitlab runner to test my CI locally.

I run it with:

sudo gitlab-runner exec docker godep  --docker-privileged

Where godep is the job I need to run

Now, the next step is gobuild, but this step is dependant of the previous step, as it will generate an artifact

Is it possible to run several jobs with gitlab-runner ???

Upvotes: 4

Views: 4767

Answers (2)

BrokenBinary
BrokenBinary

Reputation: 7899

One of the limitations of gitlab-runner exec is that it can only run one job, not full pipelines with all stages.

A full list of limitations can be seen in the docs.

Upvotes: 11

Brad Natelborg
Brad Natelborg

Reputation: 11

Typically, if I want to test my pipeline, I just run the entire pipeline using the configured runners. This seems like it would be the easy solution instead of trying to duplicate it all manually. You may get a couple failed pipelines on your Gitlab page, but that shouldn't be a show stopper.

Upvotes: 0

Related Questions