1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-06 08:29:10 +02:00

Merge pull request #125 from vito/injectable-builder

Injectable builder (and friends)
This commit is contained in:
Brad Rydzewski
2014-02-25 15:42:37 -08:00
7 changed files with 342 additions and 263 deletions

View File

@@ -11,6 +11,7 @@ import (
"time"
"github.com/drone/drone/pkg/build"
"github.com/drone/drone/pkg/build/docker"
"github.com/drone/drone/pkg/build/log"
"github.com/drone/drone/pkg/build/repo"
"github.com/drone/drone/pkg/build/script"
@@ -174,7 +175,7 @@ func run(path string) {
// loop through and create builders
for _, b := range builds { //script.Builds {
builder := build.Builder{}
builder := build.New(docker.DefaultClient)
builder.Build = b
builder.Repo = &code
builder.Key = key
@@ -186,7 +187,7 @@ func run(path string) {
builder.Stdout = &buf
}
builders = append(builders, &builder)
builders = append(builders, builder)
}
switch *parallel {