<%
unless @resource.qualifier == 'DEV' or @resource.qualifier == 'VW' or @resource.qualifier == 'SVW'
using_default=false
- quality_gate=Property.value('sonar.qualitygate', @resource && @resource.id, nil)
+ root = @resource.root_project
+ quality_gate=Property.value('sonar.qualitygate', root.id, nil)
unless quality_gate
quality_gate=Property.value('sonar.qualitygate', nil, nil)
using_default=false || quality_gate
is_gate_default = false
gate = nil
- gate_id = Property.value('sonar.qualitygate', @resource && @resource.id, nil)
+ root = @resource.root_project
+ gate_id = Property.value('sonar.qualitygate', root.id, nil)
unless gate_id
gate_id=Property.value('sonar.qualitygate', nil, nil)
is_gate_default = false || gate_id