';
echo "";
echo "";
echo "Name | ";
echo "Slave Name | ";
echo "Status | ";
echo "Installer | ";
echo "Scenario | ";
echo "Branch | ";
echo "Job | ";
echo "
";
echo "";
echo "
";
while ($row = mysql_fetch_array($result)) {
$slave = $row{'slavename'};
if (! isCiPod($slave)) continue;
$slave_url = getSlaveUrl($slave);
$status = getSlaveStatus($slave);
$job_name = "";
$job_installer = "";
$job_branch = "";
$job_url = "";
$job_scenario = "";
$job_type = "";
if ($status == 'online'){
$job_params = getJJob($slave);
$job_name = $job_params['name'];
$job_installer = $job_params['installer'];
$job_branch = $job_params['branch'];
$job_url = $job_params['url']."lastBuild/consoleFull";
$job_scenario = $job_params['scenario'];
$job_type = $job_params['type'];
}
echo "";
echo "".$row{'name'}." | ";
echo "".$slave." | ";
if ($status == "online") $color = "#BEFAAA";
else $color = "#FAAAAB";
echo "".$status." | ";
if ($job_type == "0") $class = "blink_me";
else $class="";
echo "".$job_installer." | ";
echo "".$job_scenario." | ";
echo "".$job_branch." | ";
$green = '#33cc00';
$grey = '#646F73';
$red = '#FF5555';
$orange = '#EDD62B';
if ($job_type == "0") { // job running
echo "".$job_name." | ";
}
else if ($job_type == "1") {// last job successful
echo "".$job_name." | ";
}
else if ($job_type == "2") {// last job failed
echo "".$job_name." | ";
}
else if ($job_type == "3") {// last job is unstable
echo "".$job_name." | ";
}
else {
echo "".$job_name." | ";
}
echo "
";
}
echo '';
echo '';
?>