Commit cdd67ee9 authored by Kamil Trzciński's avatar Kamil Trzciński 🔴

Fix order of executor commands

parent 8eb100d2
......@@ -98,14 +98,13 @@ func (b *Build) FullProjectDir() string {
}
func (b *Build) Run() error {
var err error
executor := GetExecutor(b.Runner.Executor)
if executor == nil {
err = errors.New("executor not found")
}
if err == nil {
err = executor.Prepare(b.Runner, b)
// TODO: if executor is not found we will not notify the coordinator that job has failed
return errors.New("executor not found")
}
err := executor.Prepare(b.Runner, b)
if err == nil {
err = executor.Start()
}
......
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