mirror of https://github.com/harness/drone.git
decrease parallel workers to 2 for CI (#522)
parent
dfe539c67d
commit
094c14049a
|
@ -200,6 +200,7 @@ func convertToDroneBuild(execution *types.Execution) *drone.Build {
|
|||
func convertToDroneRepo(repo *types.Repository) *drone.Repo {
|
||||
return &drone.Repo{
|
||||
ID: repo.ID,
|
||||
Trusted: true, // as builds are running on user machines, the repo is marked trusted.
|
||||
UID: repo.UID,
|
||||
UserID: repo.CreatedBy,
|
||||
Name: repo.UID,
|
||||
|
|
|
@ -149,8 +149,6 @@ func (t *triggerer) Trigger(
|
|||
return t.createExecutionWithError(ctx, pipeline, base, err.Error())
|
||||
}
|
||||
|
||||
verified := true
|
||||
|
||||
var matched []*yaml.Pipeline
|
||||
var dag = dag.New()
|
||||
for _, document := range manifest.Resources {
|
||||
|
@ -237,9 +235,7 @@ func (t *triggerer) Trigger(
|
|||
if stage.Name == "" {
|
||||
stage.Name = "default"
|
||||
}
|
||||
if verified == false {
|
||||
stage.Status = enum.CIStatusBlocked
|
||||
} else if len(stage.DependsOn) == 0 {
|
||||
if len(stage.DependsOn) == 0 {
|
||||
stage.Status = enum.CIStatusPending
|
||||
}
|
||||
stages = append(stages, stage)
|
||||
|
|
|
@ -88,7 +88,7 @@ type Config struct {
|
|||
|
||||
// CI defines configuration related to build executions.
|
||||
CI struct {
|
||||
ParallelWorkers int `envconfig:"GITNESS_CI_PARALLEL_WORKERS" default:"5"`
|
||||
ParallelWorkers int `envconfig:"GITNESS_CI_PARALLEL_WORKERS" default:"2"`
|
||||
}
|
||||
|
||||
// Database defines the database configuration parameters.
|
||||
|
|
Loading…
Reference in New Issue