Commit Graph

54 Commits

Author SHA1 Message Date
Charles Lowell 30d866d7fe fix typo. 2011-10-01 17:06:40 -05:00
Charles Lowell 3ef20171b8 v0.1.8 2011-10-01 16:58:39 -05:00
Charles Lowell 40b754190e implement Pathname#join() interface for Filepath. 2011-10-01 16:58:29 -05:00
Charles Lowell a8b638daf2 v0.1.7 2011-10-01 16:46:09 -05:00
Hiroshi Nakamura 208f0af828 Add specs 2011-09-30 19:13:55 +09:00
Hiroshi Nakamura 37f7102787 Add Publisher wrapper 2011-09-29 22:24:30 +09:00
Hiroshi Nakamura f46fcb0d5a Wrap Launcher to have Process.execute API 2011-09-29 19:57:17 +09:00
Hiroshi Nakamura 1decc35ac7 Wrap Jenkins::Model::Listener to have Logger API 2011-09-29 19:52:46 +09:00
Hiroshi Nakamura 8c0a47c58c Add FilePath wrapper 2011-09-29 19:46:07 +09:00
Hiroshi Nakamura cde920a2dc No 'log' method for hudson.model.TaskListener 2011-09-29 19:43:25 +09:00
Hiroshi Nakamura 0c272860bf load_models: do not load non-'*.rb' file
Also deleted $LOAD_PATH trick. Models could load gems so we should not
reset $LOAD_PATH.

Added a spec to check model loading order.
2011-09-28 15:30:47 +09:00
Hiroshi Nakamura d5013d615e Changed model file loading order
Seaches directories in depth first with loading files for each
directory. It ensures that each file is loaded after all files in parent
directories of the file. I mean;

  ui_sample.rb
  ui_sample/
    foo.rb
    bar.rb
    baz.rb
  qux.rb

foo.rb, bar.rb and baz.rb are loaded after ui_sample.rb and qux.rb.
2011-09-27 21:30:02 +09:00
Charles Lowell 0e6066dd38 update documentation to indicate the interface change. 2011-09-23 11:34:50 -05:00
Charles Lowell 53c699556a don't be draconian when it comes to importing java objects. 2011-09-23 11:13:27 -05:00
Charles Lowell fbfcae30d4 change the Id of the descriptor to be unique across Ruby class and plugin 2011-09-23 08:33:58 -05:00
Hiroshi Nakamura 0ad78ebec3 Wrap prebuild/preform exception
Ruby side exception (RaiseException) should not be exported to Java
world. Wrap prebuild and perform to catch an error and log it. For now
it returns just false but it might be good to throw some exception to
Jenkins if proper exception exists.
2011-09-23 21:54:20 +09:00
Hiroshi Nakamura d6f4aac07a Add a Note about module->class change of Action
My change 575f4938 should be reverted I think. I used class Action for
implementing a model as a describable but I really should do is
implementing describable.
2011-09-23 10:57:19 +09:00
Charles Lowell c12cfb7371 typo 2011-09-22 07:56:24 -05:00
Charles Lowell 69d4c5f41e explicitly require jenkins/model in Jenkins::Model::Action, so that all the class tracking, etc is sure to be hooked up. 2011-09-22 07:48:07 -05:00
Hiroshi Nakamura 575f4938ae Make Jenkins::Model::Action as a class
RootAction is a class as an ExtensionPoint. Now make non-root Action to
be a class as an ExtensionPoint as well.
2011-09-22 02:30:49 +09:00
Hiroshi Nakamura 1dda2e6319 Add RootAction model
It's an interface in Jenkins, but we implement it as a class for ease of
use.
2011-09-21 14:36:02 +09:00
Hiroshi Nakamura 737e4c04db Add getConfigPage to Descriptor
I added this for enabling config view like in the playground.
2011-09-21 00:43:02 +09:00
Charles Lowell aa0cae317b add methods to find and load a specification from a directory 2011-09-19 09:06:20 -05:00
Charles Lowell 529dde6225 v0.1.5 2011-09-16 17:03:22 -05:00
Charles Lowell 57a41d551b fix typo. 2011-09-16 17:02:10 -05:00
Charles Lowell eea1c3de28 fixes for specification 2011-09-16 17:01:53 -05:00
Charles Lowell b62526df8c make specification *loosely* based on rubygems. 2011-09-16 16:19:56 -05:00
Charles Lowell 1ffd3f430d remove CLI class from runtime. 2011-09-16 14:46:35 -05:00
Hiroshi Nakamura 6186ce9d6b Add wrapper method launch() to Launcher
Do we really wrap whole Launcher.ProcStarter things? Or create our own
Launder which supports remote and local execution?
2011-09-16 20:16:31 +09:00
Hiroshi Nakamura 6cb8324dda Add wrapper methods to Jenkins::Model::Build
* build_var for getBuildVariables()
 * env(listener = nil) for getEnvironment(listener)

env(listener) does not work as expected. I'll fix it once I understand
what the listener argument is for...
2011-09-16 20:14:52 +09:00
Hiroshi Nakamura f4c400fe15 Dump a little informative something
This kind of 'puts' would be removed in the future, though.
2011-09-16 20:08:02 +09:00
Hiroshi Nakamura 989460c6c5 Fix Builder#prebuild arguments
prebuild does not get launcher.
2011-09-16 20:07:23 +09:00
Charles Lowell c2b753a0ef remove dependency on cucumber, which has a corrupt version. 2011-09-13 11:01:26 -05:00
Charles Lowell 44e10ea4c9 add NaHi to travis notifactions. 2011-09-13 10:49:29 -05:00
Charles Lowell 4eee3a6211 v0.1.4 2011-09-13 10:47:35 -05:00
Charles Lowell 023e80ee4a add KK to travis config. 2011-09-13 10:46:54 -05:00
Hiroshi Nakamura 749c67b341 Let Builder work again
Sorry for committing this without specs. I've not yet succeeded to run
specs... I'll try tomorrow.
2011-09-14 00:27:38 +09:00
Hiroshi Nakamura 4e69776a23 Ensure load all models if there's an excn
TODO: can we access to Jenkins console logger?
2011-09-13 21:30:44 +09:00
Kohsuke Kawaguchi efe309170d v0.1.3 2011-09-10 17:28:56 -07:00
Kohsuke Kawaguchi fca9947113 Added rack support 2011-09-10 17:10:21 -07:00
Kohsuke Kawaguchi ef57255fc2 v0.1.2 2011-09-09 13:27:37 -07:00
Kohsuke Kawaguchi 440fffadcf hooking up Stapler correctly 2011-09-09 10:51:25 -07:00
Charles Lowell f5d973124a add full support for actions, registering singleton extensions directly 2011-09-09 11:10:21 -05:00
Charles Lowell 9160ce5b5b v0.1.0 2011-09-02 16:04:19 -05:00
Charles Lowell de45043b01 implement auto-registration in the plugin-runtime 2011-09-02 15:58:38 -05:00
Charles Lowell 776d3ded0a remove need for explicit name in descriptor, core handles where to autodiscover the views. 2011-09-02 09:07:46 -05:00
Charles Lowell 26dc65d68a implement read_completed on Proxy objects 2011-08-26 15:37:42 -05:00
Charles Lowell 4c6ad6ba80 add sanity check to make sure that the BuildWrapper proxy class implements transient properly 2011-08-26 14:46:39 -05:00
Kohsuke Kawaguchi 96d3f95140 added more flexibility in choosing where to load models from. This helps the debug server mode 2011-08-26 09:57:41 -07:00
Charles Lowell 9bb1dcc0a7 add rake as a development dependency 2011-08-22 11:40:49 -05:00