/** {@inheritdoc} */ public function init() { $fieldset = new \Zend\Form\Fieldset('Deploy'); $fieldset->setLabel('Deploy to clients which have existing package assigned'); $deployPending = new \Zend\Form\Element\Checkbox('Pending'); $deployPending->setLabel('Pending'); $fieldset->add($deployPending); $deployRunning = new \Zend\Form\Element\Checkbox('Running'); $deployRunning->setLabel('Running'); $fieldset->add($deployRunning); $deploySuccess = new \Zend\Form\Element\Checkbox('Success'); $deploySuccess->setLabel('Success'); $fieldset->add($deploySuccess); $deployError = new \Zend\Form\Element\Checkbox('Error'); $deployError->setLabel('Error'); $fieldset->add($deployError); $deployGroups = new \Zend\Form\Element\Checkbox('Groups'); $deployGroups->setLabel('Groups'); $fieldset->add($deployGroups); $this->add($fieldset); parent::init(); }
/** {@inheritdoc} */ public function init() { $fieldset = new \Zend\Form\Fieldset('Deploy'); $fieldset->setLabel('Deploy to computers which have existing package assigned'); $deployNonnotified = new \Zend\Form\Element\Checkbox('Nonnotified'); $deployNonnotified->setLabel('Not notified'); $fieldset->add($deployNonnotified); $deploySuccess = new \Zend\Form\Element\Checkbox('Success'); $deploySuccess->setLabel('Success'); $fieldset->add($deploySuccess); $deployNotified = new \Zend\Form\Element\Checkbox('Notified'); $deployNotified->setLabel('Running'); $fieldset->add($deployNotified); $deployError = new \Zend\Form\Element\Checkbox('Error'); $deployError->setLabel('Error'); $fieldset->add($deployError); $deployGroups = new \Zend\Form\Element\Checkbox('Groups'); $deployGroups->setLabel('Groups'); $fieldset->add($deployGroups); $this->add($fieldset); parent::init(); }
// extra set of features for debugging builds. class DebugBuild extends Build { public $debug = true; public $debugLog; // Create the constructor to be able to build new build objects. public function __construct($debugLog) { $this->debugLog = $debugLog; } public function getDebugLog() { return $this->{$debugLog}; } public function setDebugLog() { $this->debugLog = $debugLog; } } ///////////////////////////////////////////////////////// // Beginning of build ///////////////////////////////////////////////////////// // // Programmatically, the build should be able to figure out what the // build number is, get the user who started the build from git or Jenkins, // have the license file statically set (perhaps), but the project to build // would likely need to be passed in. Ideally, this information would be // in a build database. $build = new Build('1', 'https://github.com/hphelion/hos.docs', 'hos-40', 'check-in-person', 'myLicense'); $build->init();