
Zuul v3 compat layer isn't going to set a ZUUL_REF var because we aren't fetching refs from a git repo server. Instead just check if the ZUUL_UUID is set which is a unique id for every job run by Zuul to see if we are running under Zuul. Change-Id: If6c122852d796427b69fc01f41c5587155c039e9
16 lines
543 B
Ruby
16 lines
543 B
Ruby
source 'https://rubygems.org'
|
|
|
|
if ENV['ZUUL_UUID'] && File.exists?("#{ENV['WORKSPACE']}/openstack-infra/puppet-openstack_infra_spec_helper")
|
|
gem_checkout_method = {:path => "#{ENV['WORKSPACE']}/openstack-infra/puppet-openstack_infra_spec_helper"}
|
|
else
|
|
gem_checkout_method = {:git => 'https://git.openstack.org/openstack-infra/puppet-openstack_infra_spec_helper'}
|
|
end
|
|
gem_checkout_method[:require] = false
|
|
|
|
group :development, :test, :system_tests do
|
|
gem 'puppet-openstack_infra_spec_helper',
|
|
gem_checkout_method
|
|
end
|
|
|
|
# vim:ft=ruby
|