jenkins-plugin-runtime 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,6 @@
1
1
  rvm:
2
2
  - jruby
3
+ notifications:
4
+ recipients:
5
+ - cowboyd@thefrontside.net
6
+ - kk@kohsuke.org
@@ -158,10 +158,15 @@ module Jenkins
158
158
 
159
159
  def load_models
160
160
  p = @java.getModelsPath().getPath()
161
+ # TODO: can we access to Jenkins console logger?
161
162
  puts "Trying to load models from #{p}"
162
163
  for filename in Dir["#{p}/**/*.rb"]
163
164
  puts "Loading "+filename
164
- load filename
165
+ begin
166
+ load filename
167
+ rescue Exception => e
168
+ puts "#{e.message} (#{e.class})\n" << (e.backtrace || []).join("\n")
169
+ end
165
170
  end
166
171
  end
167
172
  end
@@ -5,6 +5,7 @@ module Jenkins
5
5
  class Plugin
6
6
  class Proxies
7
7
  class Builder < Java.hudson.tasks.Builder
8
+ include Java.jenkins.ruby.Get
8
9
  include Jenkins::Plugin::Proxy
9
10
 
10
11
  def prebuild(build, launcher, listener)
@@ -15,8 +16,13 @@ module Jenkins
15
16
  @object.perform(import(build), import(launcher), import(listener)) ? true : false
16
17
  end
17
18
 
19
+ def get(name)
20
+ @object.respond_to?(name) ? @object.send(name) : nil
21
+ end
22
+
18
23
  end
24
+
19
25
  register Jenkins::Tasks::Builder, Builder
20
26
  end
21
27
  end
22
- end
28
+ end
@@ -1,7 +1,7 @@
1
1
  module Jenkins
2
2
  class Plugin
3
3
  module Runtime
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
6
6
  end
7
7
  end
@@ -4,6 +4,10 @@ module Jenkins
4
4
  ##
5
5
  # A single step in the entire build process
6
6
  class Builder
7
+ include Jenkins::Model
8
+ include Jenkins::Model::Describable
9
+
10
+ describe_as Java.hudson.tasks.Builder
7
11
 
8
12
  ##
9
13
  # Runs before the build begins
@@ -30,4 +34,4 @@ module Jenkins
30
34
  end
31
35
  end
32
36
  end
33
- end
37
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jenkins-plugin-runtime
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Charles Lowell
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-10 00:00:00 -07:00
13
+ date: 2011-09-13 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -159,5 +159,19 @@ rubygems_version: 1.5.1
159
159
  signing_key:
160
160
  specification_version: 3
161
161
  summary: Runtime support libraries for Jenkins Ruby plugins
162
- test_files: []
163
-
162
+ test_files:
163
+ - spec/jenkins/launcher_spec.rb
164
+ - spec/jenkins/model/action_spec.rb
165
+ - spec/jenkins/model/build_spec.rb
166
+ - spec/jenkins/model/describable_spec.rb
167
+ - spec/jenkins/model/listener_spec.rb
168
+ - spec/jenkins/model_spec.rb
169
+ - spec/jenkins/plugin/proxies/build_wrapper_spec.rb
170
+ - spec/jenkins/plugin/proxies/builder_spec.rb
171
+ - spec/jenkins/plugin/proxies/proxy_helper.rb
172
+ - spec/jenkins/plugin/proxies_spec.rb
173
+ - spec/jenkins/plugin/proxy_spec.rb
174
+ - spec/jenkins/plugin_spec.rb
175
+ - spec/jenkins/tasks/build_wrapper_spec.rb
176
+ - spec/jenkins/tasks/builder_spec.rb
177
+ - spec/spec_helper.rb