2
votes

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 ???

2

2 Answers

6
votes

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.

0
votes

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.