read()) { $path = $cdir . "/" . $myDir . "/" . $anEntry; if (is_file($path)) { $entries[$index] = $anEntry; $index++; } } aDirectory.closedir(); sort($entries); if ($index < 0) { echo "
There are no logs for this build."; return; } for ($i = 0; $i < $index; $i++) { $anEntry = $entries[$i]; $line = "$anEntry"; echo "
  • $line
  • "; } } function getBuildId() { $parts = explode("/", getcwd()); $parts2 = explode("-", $parts[count($parts) - 1]); $buildName = $parts2[0] . "-" . $parts2[1]; // Get build type names $fileHandle = fopen("../../dlconfig2.txt", "r"); while (!feof($fileHandle)) { $aLine = fgets($fileHandle, 4096); // Length parameter only optional after 4.2.0 $parts = explode(",", $aLine); $dropNames[trim($parts[0])] = trim($parts[1]); } fclose($fileHandle); $buildType = $dropNames[$parts2[0]]; $buildId = $buildType.$buildName; return($buildId); } ?> Drop Test Results
    Release Engineering logs for $buildId \n"; echo "

    Release Engineering Logs for $buildId

    \n"; ?>