예제 #1
0
 /**
  * Print jobs list
  */
 public static function printListJobs($host, $username, $password, $debug)
 {
     $hudson = new Php4Hudson_Hudson($host, $username, $password, $debug);
     $list = $hudson->getJobsList();
     if (!empty($list)) {
         print "Jobs list:\n\n";
         foreach ($list as $i) {
             print $i . "\n";
         }
     } else {
         print "No jobs available on " . $host . "\n";
     }
 }