mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-15 17:13:46 +01:00
hooked the build queue back up
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user