diff --git a/bin/Checkman.zip b/bin/Checkman.zip index 6168414..2b95c4f 100644 Binary files a/bin/Checkman.zip and b/bin/Checkman.zip differ diff --git a/scripts/cctray.check b/scripts/cctray.check index 410c9d7..ac2fcb7 100755 --- a/scripts/cctray.check +++ b/scripts/cctray.check @@ -42,10 +42,11 @@ class CCTray end def latest_status - name = [@pipeline, @stage, @job].compact.join(" :: ") + name_components = [@pipeline, @stage, @job].compact projects = @feed.xpath('//Project').select do |proj| - proj.attr('name').downcase.include?(name.downcase) + project_name_components = proj.attr('name').split(" :: ").map(&:downcase) + name_components.all? { |component| project_name_components.include?(component.downcase) } end CCTrayMultiProjectStatus.new(projects)