Pass branch name to the CNG pipeline for stable branches
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
3622310283
commit
7fd2d687db
1 changed files with 8 additions and 1 deletions
|
@ -122,7 +122,14 @@ module Trigger
|
|||
end
|
||||
|
||||
def ref
|
||||
ENV['CNG_BRANCH'] || 'master'
|
||||
default_ref =
|
||||
if ENV['CI_COMMIT_REF_NAME'] =~ /^[\d-]+-stable(-ee)?$/
|
||||
ENV['CI_COMMIT_REF_NAME']
|
||||
else
|
||||
'master'
|
||||
end
|
||||
|
||||
ENV['CNG_BRANCH'] || default_ref
|
||||
end
|
||||
|
||||
def trigger_token
|
||||
|
|
Loading…
Reference in a new issue