data.each do |item|
tok = item.split(",").map { |x| x.strip }
type = (tok[0]=="G" ? "NORMAL":"REMOTE")
- printf("%-25s %s\n",tok[1],type)
+ printf("%-25s %s %s\n",tok[1],type,tok[2])
end
end
data = query(ip, port, "JOB")
data.each do |item|
tok = item.split(",").map { |x| x.strip }
- if tok[3].nil? then
- puts "#{tok[1]} #{tok[0]} #{tok[2]}"
+ if tok[4].nil? then
+ puts "#{tok[1]} #{tok[0]} #{tok[2]} #{tok[3]}"
else
- puts "#{tok[1]} #{tok[0]} #{tok[2]} (#{tok[3]})"
+ puts "#{tok[1]} #{tok[0]} #{tok[2]} (#{tok[3]}) #{tok[4]}"
end
end
end
else
ids = job.pending_ancestor.id
end
- BuildCommServer.send(req,"#{status}:#{ids},#{job.id},#{job.get_project().name},#{job.os} #{job.progress}")
+ BuildCommServer.send(req,"#{status}:#{ids},#{job.id},#{job.get_project().name},#{job.os} #{job.progress},#{job.get_distribution_name}")
else
- BuildCommServer.send(req,"#{status},#{job.id},#{job.get_project().name},#{job.os} #{job.progress}")
+ BuildCommServer.send(req,"#{status},#{job.id},#{job.get_project().name},#{job.os} #{job.progress},#{job.get_distribution_name}")
end
when "REGISTER"
if job.pkg_type == "BINARY" and not job.get_project().nil? then
- BuildCommServer.send(req,"#{status},#{job.id},#{job.get_project().name},#{job.os} #{job.progress}")
+ BuildCommServer.send(req,"#{status},#{job.id},#{job.get_project().name},#{job.os} #{job.progress},#{job.get_distribution_name}")
else
- BuildCommServer.send(req,"#{status},#{job.id},#{job.pkg_name}")
+ BuildCommServer.send(req,"#{status},#{job.id},#{job.pkg_name},#{job.get_distribution_name}")
end
when "MULTIBUILD"
- BuildCommServer.send(req,"#{status},#{job.id},MULTI-BUILD : #{job.get_sub_jobs().map{|x| x.id}.join(" ")}")
+ BuildCommServer.send(req,"#{status},#{job.id},MULTI-BUILD : #{job.get_sub_jobs().map{|x| x.id}.join(" ")},#{job.get_distribution_name}")
end
end
sorted_list = @parent_server.prjmgr.projects.sort { |x,y| x.name <=> y.name }
sorted_list.each do |prj|
if prj.type != "GIT" then next end
- BuildCommServer.send(req,"G,#{prj.name},#{prj.repository},#{prj.branch}")
+ BuildCommServer.send(req,"G,#{prj.name},#{prj.dist_name},#{prj.repository},#{prj.branch}")
end
# print BINARY projects
sorted_list.each do |prj|
if prj.type != "BINARY" then next end
- BuildCommServer.send(req,"B,#{prj.name},#{prj.pkg_name}")
+ BuildCommServer.send(req,"B,#{prj.name},#{prj.dist_name},#{prj.pkg_name}")
end
# print REMOTE project
sorted_list.each do |prj|
if prj.type != "REMOTE" then next end
- BuildCommServer.send(req,"R,#{prj.name}")
+ BuildCommServer.send(req,"R,#{prj.name},#{prj.dist_name}")
end
BuildCommServer.send_end(req)
BuildCommServer.disconnect(req)