From 6eeddc9dc6d2bf70d791e5580687d1ae4d36c016 Mon Sep 17 00:00:00 2001 From: Stephen Ball Date: Sat, 14 Nov 2015 23:08:22 +0000 Subject: [PATCH] Added branch and update_only parameters Fixes #1127 --- PHPCI/Plugin/Deployer.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PHPCI/Plugin/Deployer.php b/PHPCI/Plugin/Deployer.php index 2db839e3..9c56a340 100644 --- a/PHPCI/Plugin/Deployer.php +++ b/PHPCI/Plugin/Deployer.php @@ -23,6 +23,7 @@ class Deployer implements \PHPCI\Plugin { protected $webhookUrl; protected $reason; + protected $updateOnly; /** * Set up the plugin, configure options, etc. @@ -43,6 +44,8 @@ class Deployer implements \PHPCI\Plugin if (isset($options['reason'])) { $this->reason = $options['reason']; } + + $this->updateOnly = isset($options['update_only']) ? (bool) $options['update_only'] : true; } /** @@ -61,6 +64,8 @@ class Deployer implements \PHPCI\Plugin 'reason' => $this->phpci->interpolate($this->reason), 'source' => 'PHPCI', 'url' => $this->phpci->interpolate('%BUILD_URI%'), + 'branch' => $this->phpci->interpolate('%BRANCH%'), + 'update_only' => $this->updateOnly )); return $response['success'];