/** * Get configs to directory */ public static function getConfigs($host, $username, $password, $debug, $output) { $hudson = new Php4Hudson_Hudson($host, $username, $password, $debug); if (empty($outputPath)) { $outputPath = "./"; } $hudson->getAllConfigs($outputPath); }
<?php /** * Php4Hudson * * @version $Id: example.php,v ea04aacef992 2009/07/20 12:54:26 ladislav $ * @author Ladislav Prskavec <*****@*****.**> * @package php4hudson * @category php4hudson * @copyright Copyright (c) 2009, Ladislav Prskavec (http://ladislav.prskavec.net) * @license MIT http://www.opensource.org/licenses/mit-license.php * @link http://code.google.com/p/php4hudson/ * @filesource */ /** * Retrive all config.xml and save into directory */ require_once "Php4Hudson/phphudson.php"; $hudson = new Php4Hudson_Hudson('http://localhost:8080/', "test", "test", true); // save all jobs config into temp $hudson->getAllConfigs("/tmp/hudson/");