Added %buildurl% var for message option

This commit is contained in:
a.cianfarani 2013-08-28 10:43:29 +02:00
parent 5cc9ddb068
commit 03c5fb5558

View file

@ -43,8 +43,11 @@ class Campfire implements \PHPCI\Plugin
public function execute()
{
$url = "<a href='".PHPCI_URL."build/view/".$this->phpci->getBuild()->getId()."'>";
$message = str_replace("%buildurl%", $url, $this->message);
$this->joinRoom($this->roomId);
$status = $this->speak($this->message,$this->roomId);
$status = $this->speak($message,$this->roomId);
$this->leaveRoom($this->roomId);
return $status;