Exemple #1
0
 $gline = fgets($gf);
 fclose($gf);
 if (strpos($gline, "unstable")) {
     echo 'unstable';
 } else {
     if (strpos($gline, "testing")) {
         echo 'testing';
     } else {
         if (strpos($gline, "stable")) {
             echo 'stable';
         }
     }
 }
 echo "</td>\n";
 echo "<td rowspan=\"" . $builder_count . "\">" . babbrev(suckfile($myworkdir["local"] . "/svnloc")) . "</td>\n";
 echo "<td rowspan=\"" . $builder_count . "\">" . tabbrev(suckfile($myworkdir["local"] . "/targetlist")) . "</td>\n";
 echo "<td rowspan=\"" . $builder_count . "\">";
 $handle = popen("ls -d " . $myworkdir["local"] . "/attempts/* | wc -l", "r");
 echo stream_get_contents($handle) . "</td>\n";
 echo "<td rowspan=\"" . $builder_count . "\">";
 $handle = popen("grep failed " . $myworkdir["local"] . "/attempts/*/status | wc -l", "r");
 echo stream_get_contents($handle) . "</td>\n";
 foreach (scandir($builders, "0") as $channel) {
     if (${channel} != "." && ${channel} != ".." && ${channel} != ".svn") {
         echo "<td><a href=\"../php-utils/cat.php?file=" . ${builders} . "/" . ${channel} . "/log\">" . ${channel} . "</a></td>\n";
         $pidfile = "{$builders}/{$channel}/LOCK";
         if (file_exists($pidfile)) {
             $p = htmlspecialchars(trim(file_get_contents($pidfile)));
             echo "<td>{$p}</td>\n";
             $s = "{$builders}/{$channel}/status";
             echo "<td>" . (file_exists($s) ? htmlspecialchars(file_get_contents($s)) : "unknown") . "</td>\n";
Exemple #2
0
        echo "<a href=\"https://{$za}.palm.com/za-dependency-checker\">";
        echo tabbrev(htmlspecialchars(trim(file_get_contents($f)))), "</a>";
    }
    echo "</td>\n";
    $svnloc = "/net/{$za}.palm.com/home/za-dc/workdir/svnloc";
    echo "<td>";
    if (file_exists($svnloc)) {
        echo "<a href=\"https://{$za}.palm.com/za-dependency-checker\">";
        echo babbrev(htmlspecialchars(trim(file_get_contents($svnloc)))), "</a>";
    }
    echo "</td>\n";
    $f = "/net/{$za}.palm.com/home/za-sc/workdir/configargs";
    echo "<td>";
    if (file_exists($f)) {
        echo "<a href=\"https://{$za}.palm.com/za-submission-checker\">";
        echo tabbrev(htmlspecialchars(trim(file_get_contents($f)))), "</a>";
    }
    echo "</td>\n";
    $svnloc = "/net/{$za}.palm.com/home/za-sc/workdir/svnloc";
    echo "<td>";
    if (file_exists($svnloc)) {
        echo "<a href=\"https://{$za}.palm.com/za-submission-checker\">";
        echo babbrev(htmlspecialchars(trim(file_get_contents($svnloc)))), "</a>";
    }
    echo "</td>\n";
    echo "</tr>\n";
}
?>

</tbody>