Check for presence of Zuul with Zuul v3
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
This commit is contained in:
parent
0d389f404f
commit
9978a409fe
2
Gemfile
2
Gemfile
@ -1,6 +1,6 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
if ENV['ZUUL_REF'] && File.exists?("#{ENV['WORKSPACE']}/openstack-infra/puppet-openstack_infra_spec_helper")
|
||||
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'}
|
||||
|
Loading…
x
Reference in New Issue
Block a user