Commit b712d59c authored by Matija Čupić's avatar Matija Čupić

Build AutoDevops instead of using ProjectAutoDevops#new

parent b7d9e544
......@@ -1618,7 +1618,7 @@ class Project < ActiveRecord::Base
def auto_devops_variables
return [] unless auto_devops_enabled?
(auto_devops || ProjectAutoDevops.new)&.variables
(auto_devops || build_auto_devops)&.variables
end
def append_or_update_attribute(name, value)
......
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