Added %buildurl% var for message option
This commit is contained in:
parent
5cc9ddb068
commit
03c5fb5558
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue