form.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. $now = helper::now();
  3. $config->job->form = new stdclass();
  4. $config->job->form->create = array();
  5. $config->job->form->create['name'] = array('type' => 'string', 'required' => true);
  6. $config->job->form->create['engine'] = array('type' => 'string', 'required' => true);
  7. $config->job->form->create['repo'] = array('type' => 'int', 'required' => true);
  8. $config->job->form->create['reference'] = array('type' => 'string', 'required' => false, 'default' => '');
  9. $config->job->form->create['frame'] = array('type' => 'string', 'required' => false, 'default' => '');
  10. $config->job->form->create['product'] = array('type' => 'int', 'required' => false, 'default' => 0);
  11. $config->job->form->create['sonarqubeServer'] = array('type' => 'int', 'required' => false, 'default' => 0);
  12. $config->job->form->create['projectKey'] = array('type' => 'string', 'required' => false, 'default' => '');
  13. $config->job->form->create['jkServer'] = array('type' => 'int', 'required' => false, 'default' => 0);
  14. $config->job->form->create['jkTask'] = array('type' => 'string', 'required' => false, 'default' => '');
  15. $config->job->form->create['createdDate'] = array('type' => 'string', 'required' => false, 'default' => $now);
  16. $config->job->form->edit = array();
  17. $config->job->form->edit['name'] = array('type' => 'string', 'required' => true);
  18. $config->job->form->edit['engine'] = array('type' => 'string', 'required' => true);
  19. $config->job->form->edit['repo'] = array('type' => 'int', 'required' => true);
  20. $config->job->form->edit['reference'] = array('type' => 'string', 'required' => false, 'default' => '');
  21. $config->job->form->edit['frame'] = array('type' => 'string', 'required' => false, 'default' => '');
  22. $config->job->form->edit['triggerType'] = array('type' => 'array', 'required' => false, 'default' => array(), 'filter' => 'join');
  23. $config->job->form->edit['svnDir'] = array('type' => 'array', 'required' => false, 'default' => array(), 'filter' => 'join');
  24. $config->job->form->edit['product'] = array('type' => 'int', 'required' => false, 'default' => 0);
  25. $config->job->form->edit['sonarqubeServer'] = array('type' => 'int', 'required' => false, 'default' => 0);
  26. $config->job->form->edit['projectKey'] = array('type' => 'string', 'required' => false, 'default' => '');
  27. $config->job->form->edit['comment'] = array('type' => 'string', 'required' => false, 'default' => '');
  28. $config->job->form->edit['triggerActions'] = array('type' => 'array', 'required' => false, 'default' => array(), 'filter' => 'join');
  29. $config->job->form->edit['atDay'] = array('type' => 'array', 'required' => false, 'default' => array(), 'filter' => 'join');
  30. $config->job->form->edit['atTime'] = array('type' => 'string', 'required' => false, 'default' => '');
  31. $config->job->form->edit['jkServer'] = array('type' => 'int', 'required' => false, 'default' => 0);
  32. $config->job->form->edit['jkTask'] = array('type' => 'string', 'required' => false, 'default' => '');
  33. $config->job->form->edit['paramName'] = array('type' => 'array', 'required' => false, 'default' => array());
  34. $config->job->form->edit['paramValue'] = array('type' => 'array', 'required' => false, 'default' => array());
  35. $config->job->form->edit['autoRun'] = array('type' => 'int', 'required' => false, 'default' => 1);
  36. $config->job->form->edit['editedDate'] = array('type' => 'string', 'required' => false, 'default' => $now);