public function executePlugins(&$config, $stage)
    {
        $success = true;
        $pluginsToExecute = array();

        // If we have global plugins to execute for this stage, add them to the list to be executed:
        if (array_key_exists($stage, $config) && is_array($config[$stage])) {
            $pluginsToExecute[] = $config[$stage];
        }

        $pluginsToExecute = $this->getBranchSpecificPlugins($config, $stage, $pluginsToExecute);

        foreach ($pluginsToExecute as $pluginSet) {
            if (!$this->doExecutePlugins($pluginSet, $stage)) {
                $success = false;
            }
        }

        return $success;
    }
public function executePlugins(&$config, $stage)
    {
        $success = true;
        $pluginsToExecute = array();

        // If we have global plugins to execute for this stage, add them to the list to be executed:
        if (array_key_exists($stage, $config) && is_array($config[$stage])) {
            $pluginsToExecute[] = $config[$stage];
        }

        $pluginsToExecute = $this->getBranchSpecificPlugins($config, $stage, $pluginsToExecute);

        foreach ($pluginsToExecute as $pluginSet) {
            if (!$this->doExecutePlugins($pluginSet, $stage)) {
                $success = false;
            }
        }

        return $success;
    }
public function executePlugins ( & $ config , $ stage ) { $ success = true ; $ pluginsToExecute = array ( ) ; // If we have global plugins to execute for this stage, add them to the list to be executed: if ( array_key_exists ( $ stage , $ config ) && is_array ( $ config [ $ stage ] ) ) { $ pluginsToExecute [ ] = $ config [ $ stage ] ; } $ pluginsToExecute = $ this -> getBranchSpecificPlugins ( $ config , $ stage , $ pluginsToExecute ) ; foreach ( $ pluginsToExecute as $ pluginSet ) { if ( ! $ this -> doExecutePlugins ( $ pluginSet , $ stage ) ) { $ success = false ; } } return $ success ; }
Execute a the appropriate set of plugins for a given build stage.
@param array $config PHPCI configuration
@param string $stage
@return bool
Execute a the appropriate set of plugins for a given build stage .