Commit 7fd2d687 authored by Rémy Coutable's avatar Rémy Coutable

Pass branch name to the CNG pipeline for stable branches

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 36223102
......@@ -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
......
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