Commit f50d0e4e authored by Grzegorz Bizon's avatar Grzegorz Bizon

Correctly check whether package-and-qa runs for EE

parent cb9e00b0
......@@ -9,6 +9,7 @@ module Omnibus
class Trigger
TOKEN = ENV['BUILD_TRIGGER_TOKEN']
TRIGGERER = ENV['CI_PROJECT_NAME']
def initialize
@uri = URI("https://gitlab.com/api/v4/projects/#{CGI.escape(Omnibus::PROJECT_PATH)}/trigger/pipeline")
......@@ -32,7 +33,7 @@ module Omnibus
private
def ee?
File.exist?('CHANGELOG-EE.md')
TRIGGERER == 'gitlab-ee' || File.exist?('CHANGELOG-EE.md')
end
def env_params
......
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