Exemplo n.º 1
0
 function deleteJob()
 {
     $request =& HTTPRequest::instance();
     $group_id = $request->get('group_id');
     $job_id = $request->get('job_id');
     $job_dao = new PluginHudsonJobDao(CodendiDataAccess::instance());
     if (!$job_dao->deleteHudsonJob($job_id)) {
         $GLOBALS['Response']->addFeedback('error', $GLOBALS['Language']->getText('plugin_hudson', 'delete_job_error'));
     } else {
         $GLOBALS['Response']->addFeedback('info', $GLOBALS['Language']->getText('plugin_hudson', 'job_deleted'));
         $em = EventManager::instance();
         $params = array('job_id' => $job_id);
         $em->processEvent('delete_ci_triggers', $params);
     }
 }