@@ -10,7 +10,6 @@ import (
1010 "github.com/sirupsen/logrus"
1111
1212 "github.com/go-vela/server/api/types"
13- "github.com/go-vela/server/cache"
1413 "github.com/go-vela/server/compiler/types/pipeline"
1514 "github.com/go-vela/server/constants"
1615 "github.com/go-vela/server/database"
@@ -20,7 +19,7 @@ import (
2019// PlanSteps is a helper function to plan all steps
2120// in the build for execution. This creates the steps
2221// for the build.
23- func PlanSteps (ctx context.Context , cache cache. Service , database database.Interface , scm scm.Service , p * pipeline.Build , b * types.Build ) ([]* types.Step , error ) {
22+ func PlanSteps (ctx context.Context , database database.Interface , scm scm.Service , p * pipeline.Build , b * types.Build ) ([]* types.Step , error ) {
2423 // variable to store planned steps
2524 steps := []* types.Step {}
2625
@@ -29,7 +28,7 @@ func PlanSteps(ctx context.Context, cache cache.Service, database database.Inter
2928 // iterate through all steps for each pipeline stage
3029 for _ , step := range stage .Steps {
3130 // create the step object
32- s , err := planStep (ctx , cache , database , scm , b , step , stage .Name )
31+ s , err := planStep (ctx , database , scm , b , step , stage .Name )
3332 if err != nil {
3433 return steps , err
3534 }
@@ -40,7 +39,7 @@ func PlanSteps(ctx context.Context, cache cache.Service, database database.Inter
4039
4140 // iterate through all pipeline steps
4241 for _ , step := range p .Steps {
43- s , err := planStep (ctx , cache , database , scm , b , step , "" )
42+ s , err := planStep (ctx , database , scm , b , step , "" )
4443 if err != nil {
4544 return steps , err
4645 }
@@ -51,7 +50,7 @@ func PlanSteps(ctx context.Context, cache cache.Service, database database.Inter
5150 return steps , nil
5251}
5352
54- func planStep (ctx context.Context , cache cache. Service , database database.Interface , scm scm.Service , b * types.Build , c * pipeline.Container , stage string ) (* types.Step , error ) {
53+ func planStep (ctx context.Context , database database.Interface , scm scm.Service , b * types.Build , c * pipeline.Container , stage string ) (* types.Step , error ) {
5554 // create the step object
5655 s := new (types.Step )
5756 s .SetBuildID (b .GetID ())
@@ -109,15 +108,10 @@ func planStep(ctx context.Context, cache cache.Service, database database.Interf
109108
110109 if len (s .GetReportAs ()) > 0 {
111110 // send API call to set the status on the commit using token in environment
112- stepCheckRuns , err := scm .StepStatus (ctx , b , s , c .Environment ["VELA_NETRC_PASSWORD" ], nil )
111+ err := scm .StepStatus (ctx , b , s , c .Environment ["VELA_NETRC_PASSWORD" ])
113112 if err != nil {
114113 logrus .Errorf ("unable to set commit status for build: %v" , err )
115114 }
116-
117- err = cache .StoreStepCheckRuns (ctx , s .GetID (), stepCheckRuns , b .GetRepo ())
118- if err != nil {
119- logrus .Errorf ("unable to store step check runs in cache: %v" , err )
120- }
121115 }
122116
123117 return s , nil
0 commit comments