Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/cctray.check
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ class CCTray
end

def latest_status
name = [@pipeline, @stage, @job].compact.join(" :: ")
name = [@pipeline, @stage, @job].compact

projects = @feed.xpath('//Project').select do |proj|
proj.attr('name').downcase.include?(name.downcase)
name.each_with_index do |attribute, index|
break unless proj.attr('name').downcase.split(' :: ')[index] == attribute.downcase
end
end

CCTrayMultiProjectStatus.new(projects)
Expand Down