FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixes cctray check to look for exact pipeline/stage/job name. by bsnchan · Pull Request #56 · cppforlife/checkman · GitHub

Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .check  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 4 additions & 2 deletions scripts/cctray.check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL