Commit b7b5442a authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

Allow CI/CD Jobs being grouped on version strings

This makes grouping on version number available. In general I'd like to
group based on MAJOR.MINOR version numbers for Gitaly.
parent 3db41dc7e58f
......@@ -141,7 +141,7 @@ def before_sha
end
def group_name
name.to_s.gsub(%r{\d+[\s:/\\]+\d+\s*}, '').strip
name.to_s.gsub(%r{\d+[\.\s:/\\]+\d+\s*}, '').strip
end
def failed_but_allowed?
......
---
title: Allow CI/CD Jobs being grouped on version strings
merge_request:
author:
type: added
......@@ -368,7 +368,9 @@ def create_status(**opts)
'rspec:windows 0 : / 1' => 'rspec:windows',
'rspec:windows 0 : / 1 name' => 'rspec:windows name',
'0 1 name ruby' => 'name ruby',
'0 :/ 1 name ruby' => 'name ruby'
'0 :/ 1 name ruby' => 'name ruby',
'golang test 1.8' => 'golang test',
'1.9 golang test' => 'golang test'
}
tests.each do |name, group_name|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment