hooked the build queue back up

This commit is contained in:
Brad
2014-06-11 17:42:49 -07:00
parent 30b38bd4b7
commit 7abe695a5c
10 changed files with 111 additions and 49 deletions

View File

@@ -6,7 +6,7 @@ import (
"github.com/drone/drone/server/channel"
"github.com/drone/drone/shared/build/git"
r "github.com/drone/drone/shared/build/repo"
//"github.com/drone/drone/pkg/plugin/notify"
"github.com/drone/drone/shared/build/script"
"io"
"path/filepath"
"time"
@@ -53,6 +53,13 @@ func (w *worker) execute(task *BuildTask) error {
}
}()
// parse the build script
params, err := task.Repo.ParamMap()
task.Script, err = script.ParseBuild(task.Commit.Config, params)
if err != nil {
return err
}
// update commit and build status
task.Commit.Status = commit.StatusStarted
task.Commit.Started = time.Now().Unix()