Commit 19dc24c3 authored by James Lopez's avatar James Lopez

refactored retries config to use .gitlab-ci.yml variable

parent 740da82b
......@@ -187,6 +187,8 @@ func TestRunFailure(t *testing.T) {
},
},
}
build.Variables = append(build.Variables, BuildVariable{Key: "PRE_BUILD_RETRIES", Value: "3"})
err = build.Run(&Config{}, &Trace{Writer: os.Stdout})
assert.EqualError(t, err, "build fail")
}
......@@ -16,6 +16,6 @@ const ShutdownTimeout = 30
const DefaultOutputLimit = 4096 // 4MB in kilobytes
const ForceTraceSentInterval = 30 * time.Second
const PreparationRetries = 3
const PreBuildRetries = 3
const PreBuildRetries = 1
var PreparationRetryInterval = 3 * time.Second
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment