(ctx context.Context, fileName string, rc *RunContext)
| 54 | } |
| 55 | |
| 56 | func processRunnerSummaryCommand(ctx context.Context, fileName string, rc *RunContext) error { |
| 57 | if common.Dryrun(ctx) { |
| 58 | return nil |
| 59 | } |
| 60 | pathTar, err := rc.JobContainer.GetContainerArchive(ctx, path.Join(rc.JobContainer.GetActPath(), fileName)) |
| 61 | if err != nil { |
| 62 | return err |
| 63 | } |
| 64 | defer pathTar.Close() |
| 65 | |
| 66 | reader := tar.NewReader(pathTar) |
| 67 | _, err = reader.Next() |
| 68 | if err != nil && err != io.EOF { |
| 69 | return err |
| 70 | } |
| 71 | summary, err := io.ReadAll(reader) |
| 72 | if err != nil { |
| 73 | return err |
| 74 | } |
| 75 | if len(summary) == 0 { |
| 76 | return nil |
| 77 | } |
| 78 | common.Logger(ctx).WithFields(logrus.Fields{"command": "summary", "content": string(summary)}).Infof(" \U00002699 Summary - %s", string(summary)) |
| 79 | return nil |
| 80 | } |
| 81 | |
| 82 | func processRunnerEnvFileCommand(ctx context.Context, fileName string, rc *RunContext, setter func(context.Context, map[string]string, string)) error { |
| 83 | env := map[string]string{} |
no test coverage detected
searching dependent graphs…