Template:Version2: Difference between revisions

From Citizens Wiki

No edit summary
No edit summary
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<?php
2.0.2<noinclude>
$jnksUrl = "http://ci.citizensnpcs.net";
==Documentation==
$jnksJob = "Citizens2";
Latest dev build.
 
[[Category:Templates]]
// No configuration required below.
</noinclude>
$contents = @file_get_contents($jnksUrl . "/job/" . $jnksJob . "/lastSuccessfulBuild/");
$matches = array();
$match = preg_match('/\<title\>[A-Za-z0-9-_]+ \#([0-9]+) \[Jenkins\]\<\/title\>/i', $contents, $matches);
if ($match == 0) exit;
print $matches[1];
exit;

Latest revision as of 14:11, 23 September 2012

2.0.2

Documentation

Latest dev build.