A legacy job run log file is a top-level .txt file whose name starts with a negative number which is the ID of the run; e.g., "-2147483648_jobname.txt".
(job shared.Job)
| 272 | // A legacy job run log file is a top-level .txt file whose name starts with a |
| 273 | // negative number which is the ID of the run; e.g., "-2147483648_jobname.txt". |
| 274 | func legacyJobLogFilenameRegexp(job shared.Job) *regexp.Regexp { |
| 275 | sanitizedJobName := getJobNameForLogFilename(job.Name) |
| 276 | re := fmt.Sprintf(`^-\d+_%s\.txt$`, regexp.QuoteMeta(sanitizedJobName)) |
| 277 | return regexp.MustCompile(re) |
| 278 | } |
| 279 | |
| 280 | func stepLogFilenameRegexp(job shared.Job, step shared.Step) *regexp.Regexp { |
| 281 | sanitizedJobName := getJobNameForLogFilename(job.Name) |
no test coverage detected