Only one runner for all jobs in pipeline

Hello, i have a question. I have 2 shared runnerы and one pipeline with 2 jobs in it. Now i have a problem - form time to time, runne1 run 1st job and after it runner2 start 2nd job and failed. How prevent runner2 from taking 2nd job if runner1 already did 1st? And i need all 2 runner avaliable for this project. Thanks!

Hello,

This is the normal behavior. Each job is run independently from each other.

What was the reason it failed? Are your runners different?

I’ve already fixed it. In old behavior “docker build” and “docker push” was in different stages, so error occured. So i’ve changes project’s ylm’s and combined these 2 stages into 1. So now it works just fine.

1 Like