From 03c5fb5558b7817e89f615b0d47129c491306238 Mon Sep 17 00:00:00 2001 From: "a.cianfarani" Date: Wed, 28 Aug 2013 10:43:29 +0200 Subject: [PATCH] Added %buildurl% var for message option --- PHPCI/Plugin/Campfire.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PHPCI/Plugin/Campfire.php b/PHPCI/Plugin/Campfire.php index 78269520..18e23a06 100644 --- a/PHPCI/Plugin/Campfire.php +++ b/PHPCI/Plugin/Campfire.php @@ -43,8 +43,11 @@ class Campfire implements \PHPCI\Plugin public function execute() { + + $url = ""; + $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;