Skip to content
Snippets Groups Projects
Commit 7c46738c authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Do not retry yet

parent ba640d10
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,6 @@ package docker
import (
"bytes"
"errors"
"time"
"github.com/docker/docker/api/types"
"gitlab.com/gitlab-org/gitlab-ci-multi-runner/common"
......@@ -59,18 +58,11 @@ func (s *commandExecutor) Run(cmd common.ExecutorCommand) error {
var runOn *types.ContainerJSON
var err error
for i := 0; i < 3; i++ {
if cmd.Predefined {
runOn, err = s.createPrebuiltContainer()
} else {
runOn, err = s.createBuildContainer()
}
if err == nil {
break
}
time.Sleep(3 * time.Second)
if cmd.Predefined {
runOn, err = s.createPrebuiltContainer()
} else {
runOn, err = s.createBuildContainer()
}
if err != nil {
return err
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment