@@ -83,7 +83,7 @@ type DevopsOperator interface {
8383 ReplayPipeline (projectName , pipelineName , runId string , req * http.Request ) (* devops.ReplayPipeline , error )
8484 RunPipeline (projectName , pipelineName string , req * http.Request ) (* devops.RunPipeline , error )
8585 GetArtifacts (projectName , pipelineName , runId string , req * http.Request ) ([]devops.Artifacts , error )
86- GetRunLog (projectName , pipelineName , runId string , req * http.Request ) ([]byte , error )
86+ GetRunLog (projectName , pipelineName , runId string , req * http.Request ) ([]byte , http. Header , error )
8787 GetStepLog (projectName , pipelineName , runId , nodeId , stepId string , req * http.Request ) ([]byte , http.Header , error )
8888 GetNodeSteps (projectName , pipelineName , runId , nodeId string , req * http.Request ) ([]devops.NodeSteps , error )
8989 GetPipelineRunNodes (projectName , pipelineName , runId string , req * http.Request ) ([]devops.PipelineRunNodes , error )
@@ -550,15 +550,15 @@ func (d devopsOperator) GetArtifacts(projectName, pipelineName, runId string, re
550550 return res , err
551551}
552552
553- func (d devopsOperator ) GetRunLog (projectName , pipelineName , runId string , req * http.Request ) ([]byte , error ) {
553+ func (d devopsOperator ) GetRunLog (projectName , pipelineName , runId string , req * http.Request ) ([]byte , http. Header , error ) {
554554
555- res , err := d .devopsClient .GetRunLog (projectName , pipelineName , runId , convertToHttpParameters (req ))
555+ res , header , err := d .devopsClient .GetRunLog (projectName , pipelineName , runId , convertToHttpParameters (req ))
556556 if err != nil {
557557 klog .Error (err )
558- return nil , err
558+ return nil , nil , err
559559 }
560560
561- return res , err
561+ return res , header , err
562562}
563563
564564func (d devopsOperator ) GetStepLog (projectName , pipelineName , runId , nodeId , stepId string , req * http.Request ) ([]byte , http.Header , error ) {
0 commit comments