modify regex for trimming job name
flaky_jobs_to_sentry fails if the specs are not in the spec/ dir. Modified the regex to not specifically look for spec/ but rather just remove the ./ at the beginning and [] at the end.
This commit is contained in:
parent
fddf75c768
commit
b5a638f114
|
@ -134,7 +134,7 @@ module RSpecQ
|
|||
return if jobs.empty?
|
||||
|
||||
jobs.each do |job|
|
||||
filename = job.sub(/\[.+\]/, "")[%r{spec/.+}].split(":")[0]
|
||||
filename = job.gsub(/\[.+\]|\.\//, "").split(":")[0]
|
||||
|
||||
extra = {
|
||||
build: @build_id,
|
||||
|
|
Loading…
Reference in New Issue